农经大屏
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
536 B

  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. Vue.use(VueRouter);
  4. const routes = [
  5. {
  6. path: '/',
  7. name: 'root',
  8. redirect: '/resources'
  9. },
  10. // 资金
  11. {
  12. path: '/capital',
  13. name: 'capital',
  14. component: () => import('@/views/capital/index.vue')
  15. },
  16. // 资源
  17. {
  18. path: '/resources',
  19. name: 'resources',
  20. component: () => import('@/views/resources/index.vue')
  21. }
  22. ];
  23. const router = new VueRouter({
  24. routes
  25. // mode: 'history'
  26. });
  27. export default router;