router.js 883 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. import App from './components/App.vue';
  4. import CardIndex from './components/CardIndex/CardIndex.vue';
  5. import Reader from './components/Reader/Reader.vue';
  6. //import Forum from './components/Forum/Forum.vue';
  7. import Income from './components/Income/Income.vue';
  8. import Sources from './components/Sources/Sources.vue';
  9. import Settings from './components/Settings/Settings.vue';
  10. import Help from './components/Help/Help.vue';
  11. Vue.use(VueRouter);
  12. let routes = [
  13. { path: '/', redirect: '/cardindex' },
  14. { path: '/cardindex', component: CardIndex },
  15. { path: '/reader', component: Reader },
  16. { path: '/income', component: Income },
  17. { path: '/sources', component: Sources },
  18. { path: '/settings', component: Settings },
  19. { path: '/help', component: Help },
  20. ];
  21. export default new VueRouter({
  22. routes
  23. });