25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
986 B

  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. import Layout from "@/components/Layout.vue";
  4. Vue.use(VueRouter)
  5. const routes = [
  6. {
  7. path: '/',
  8. component: Layout,
  9. redirect: '/userauto',
  10. meta: {
  11. title: "生成学生信息",
  12. icon:"el-icon-s-open"
  13. },
  14. children: [
  15. {
  16. path: 'userauto',
  17. name: 'UserAuto',
  18. component: () => import('@/views/UserAuto.vue'),
  19. }
  20. ]
  21. },
  22. {
  23. path: '/about',
  24. component: Layout,
  25. meta: {
  26. title: "关于",
  27. icon: "el-icon-info"
  28. },
  29. children: [
  30. {
  31. path: 'index',
  32. name: 'Abuout',
  33. component: () => import('@/views/About.vue'),
  34. }
  35. ]
  36. }
  37. ]
  38. const router = new VueRouter({
  39. mode: 'history',
  40. base: process.env.BASE_URL,
  41. routes
  42. })
  43. export default router