Blame view

src/router/index.js 992 Bytes
9b7e125f   monkeyhouyi   属地页面
1
2
3
  
  import Vue from "vue";
  import VueRouter from "vue-router";
0e2463be   monkeyhouyi   系统修改记录
4
  import Layout from '@/views/homePage/HomePage.vue'
9b7e125f   monkeyhouyi   属地页面
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  
  
  Vue.use(VueRouter);
  
  const router = new VueRouter({
    mode: 'hash', // 使用 hash 模式
    routes: [
      {
        path: '',
        component: Layout,
        name: 'homePage',
        children: [
          {
            path: '/homePage',
            name: 'homePage',
0e2463be   monkeyhouyi   系统修改记录
20
            component: () => import('@/views/overView/Overview.vue'),
9b7e125f   monkeyhouyi   属地页面
21
22
23
24
25
26
27
28
29
30
31
32
            meta: { title: '首页', icon: 'dashboard', affix: true }
          },
        ]
      },
      {
        path: '',
        component: Layout,
        name: 'infoList',
        children: [
          {
            path: '/infoList',
            name: 'infoList',
0e2463be   monkeyhouyi   系统修改记录
33
            component: () => import('@/views/systemPage/InfoList.vue'),
9b7e125f   monkeyhouyi   属地页面
34
35
36
37
38
39
40
41
42
43
44
45
46
            meta: { title: '系统', icon: 'dashboard', affix: true }
          },
        ]
      },
      {
        path: '/login',
        name: 'login',
        component: () => import('@/views/Login.vue'),
      },
    ]
  });
  
  export default router;