Moli0
2022-02-15 3d13fff2afc69131bbca9ea98deaa3907bf454f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { createRouter, createWebHistory } from 'vue-router'
 
 
const routes = [
  {
    path: '/',
    redirect: '/home/index',
    component: () => import('../views/Layout/Index.vue'),
    children: [
      {
        path: '/home',
        redirect: '/home/index'
      },
      {
        path: '/home/index',
        components: {
          default: () => import('../views/Home/Index.vue'),
          Home: () => import('../views/Home/Index.vue'),
          AccountManage: () => import('../views/SysManagement/Account.vue'),
          SystemManage: () => import('../views/SysManagement/System.vue'),
        },
      }
    ]
  },
  {
    path: '/login/signIn',
    name: 'SignIn',
    component: () => import('../views/Login/SignIn.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('../views/Test/test.vue')
  },
]
 
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})
 
export default router