index.js 648 B

123456789101112131415161718192021222324252627282930313233343536
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import Home from 'vuejs/components/Content/Home'
  4. import Base from 'vuejs/components/Content/Base'
  5. Vue.use(VueRouter)
  6. // https://www.lullabot.com/articles/decoupled-hard-problems-routing
  7. export default new VueRouter({
  8. mode: 'history',
  9. routes: [
  10. {
  11. path: '/',
  12. name: 'home',
  13. components: {
  14. 'home': Home
  15. }
  16. },
  17. {
  18. path: '/base',
  19. name:'base',
  20. components: {
  21. 'base': Base
  22. }
  23. },
  24. // {
  25. // path: '*',
  26. // name: 'notfound',
  27. // components: {
  28. // 'notfound': NotFound
  29. // }
  30. // }
  31. ]
  32. })