51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
|
|
import Home from './views/home/Home.vue'
|
||
|
|
|
||
|
|
import UserLogin from './views/user/Login.vue'
|
||
|
|
import UserMyInfo from './views/user/MyInfo.vue'
|
||
|
|
import UserRouterView from './views/user/RouterView.vue'
|
||
|
|
|
||
|
|
import TableInfo from './views/table/Info.vue'
|
||
|
|
import TableDatabase from './views/table/Database.vue'
|
||
|
|
import TableRouterView from './views/table/RouterView.vue'
|
||
|
|
|
||
|
|
import CommonNoAuth from './views/common/NoAuth.vue'
|
||
|
|
|
||
|
|
let routes = [
|
||
|
|
{
|
||
|
|
path: '/home',
|
||
|
|
component: Home,
|
||
|
|
name: '主页',
|
||
|
|
meta: {
|
||
|
|
requireAuth: true,
|
||
|
|
}
|
||
|
|
}, {
|
||
|
|
path: '/user',
|
||
|
|
name: '用户管理',
|
||
|
|
component: UserRouterView,
|
||
|
|
children: [
|
||
|
|
{path: 'login', name: '系统登录',component: UserLogin, meta: {fullscreen: true}},
|
||
|
|
{path: 'myInfo', name: '我的信息',component: UserMyInfo},
|
||
|
|
]
|
||
|
|
}, {
|
||
|
|
path: '/table',
|
||
|
|
name: '表信息',
|
||
|
|
component: TableRouterView,
|
||
|
|
children: [
|
||
|
|
{path: 'info', name: '表信息',component: TableInfo},
|
||
|
|
{path: 'database', name: '库信息',component: TableDatabase},
|
||
|
|
]
|
||
|
|
}, {
|
||
|
|
path: '/common',
|
||
|
|
name: '',
|
||
|
|
component: UserRouterView,
|
||
|
|
children: [
|
||
|
|
{path: 'noAuth', name: '没有权限',component: CommonNoAuth},
|
||
|
|
]
|
||
|
|
}, {
|
||
|
|
path: '/',
|
||
|
|
redirect: '/home'
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
export default routes;
|