农经大屏
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

31 wiersze
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;