|
@@ -6,34 +6,34 @@ const router = createRouter({
|
|
|
{
|
|
{
|
|
|
path: '/',
|
|
path: '/',
|
|
|
name: 'layout',
|
|
name: 'layout',
|
|
|
- component: () => import('../layouts/index.vue'),
|
|
|
|
|
|
|
+ component: () => import('@/layouts/index.vue'),
|
|
|
redirect: '/home',
|
|
redirect: '/home',
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/home',
|
|
path: '/home',
|
|
|
name: 'home',
|
|
name: 'home',
|
|
|
- component: () => import('../views/home/index.vue')
|
|
|
|
|
|
|
+ component: () => import('@/views/home/index.vue')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/system',
|
|
path: '/system',
|
|
|
name: 'system',
|
|
name: 'system',
|
|
|
- component: () => import('../views/system/index.vue'),
|
|
|
|
|
|
|
+ component: () => import('@/views/system/index.vue'),
|
|
|
redirect: '/system/user',
|
|
redirect: '/system/user',
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: 'user',
|
|
path: 'user',
|
|
|
name: 'user',
|
|
name: 'user',
|
|
|
- component: () => import('../views/system/user/index.vue')
|
|
|
|
|
|
|
+ component: () => import('@/views/system/user/index.vue')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'role',
|
|
path: 'role',
|
|
|
- name: 'srole',
|
|
|
|
|
- component: () => import('../views/system/role/index.vue')
|
|
|
|
|
|
|
+ name: 'role',
|
|
|
|
|
+ component: () => import('@/views/system/role/index.vue')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'permission',
|
|
path: 'permission',
|
|
|
name: 'permission',
|
|
name: 'permission',
|
|
|
- component: () => import('../views/system/permission/index.vue')
|
|
|
|
|
|
|
+ component: () => import('@/views/system/permission/index.vue')
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|