前后端分目录
This commit is contained in:
69
h5-auth-manager/src/router/index.js
Normal file
69
h5-auth-manager/src/router/index.js
Normal file
@@ -0,0 +1,69 @@
|
||||
import Vue from 'vue';
|
||||
import Router from 'vue-router';
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
export default new Router({
|
||||
routes: [
|
||||
{
|
||||
path: '/redirect/:path(.*)',
|
||||
component: () => import('../components/page/redirect/index.vue'),
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/userManagement'
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
component: () => import('../components/page/Login.vue'),
|
||||
meta: { title: '登录' }
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('../components/common/Home.vue'),
|
||||
meta: { title: '自述文件' },
|
||||
children: [
|
||||
{
|
||||
path: '/dashboard',
|
||||
component: () => import('../components/page/Dashboard.vue'),
|
||||
meta: { title: '系统首页' }
|
||||
},
|
||||
{
|
||||
path:'/userManagement',
|
||||
component: () => import('../components/page/systemManagement/userManagement.vue'),
|
||||
meta: { title: '用户管理' }
|
||||
},
|
||||
{
|
||||
path:'/roleManagement',
|
||||
component: () => import('../components/page/systemManagement/roleManagement.vue'),
|
||||
meta: { title: '角色管理' }
|
||||
},
|
||||
{
|
||||
path:'/resourceManagement',
|
||||
component: () => import('../components/page/systemManagement/resourceManagement.vue'),
|
||||
meta: { title: '资源管理' }
|
||||
},
|
||||
{
|
||||
path:'/organizationManagement',
|
||||
component: () => import('../components/page/systemManagement/organizationManagement.vue'),
|
||||
meta: { title: '组织管理' }
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
component: () => import('../components/page/404.vue'),
|
||||
meta: { title: '404' }
|
||||
},
|
||||
{
|
||||
path: '/403',
|
||||
component: () => import('../components/page/403.vue'),
|
||||
meta: { title: '403' }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
path: '*',
|
||||
redirect: '/404'
|
||||
}
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user