2021-10-17 19:50:22 +08:00
|
|
|
import PageLayout from './components/layouts/PageLayout.vue'
|
2021-11-09 22:54:37 +08:00
|
|
|
import EmptyKeepAliveLayout from './components/layouts/EmptyKeepAliveLayout.vue'
|
2021-10-17 19:50:22 +08:00
|
|
|
|
|
|
|
|
let routers = [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
name: '主页',
|
|
|
|
|
component: () => import('./components/layouts/GlobalLayout.vue'),
|
2021-10-26 23:49:47 +08:00
|
|
|
redirect: '/doc/info',
|
2021-10-17 19:50:22 +08:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '/doc',
|
|
|
|
|
name: '系统配置',
|
|
|
|
|
component: PageLayout,
|
|
|
|
|
children: [
|
2021-10-26 22:32:42 +08:00
|
|
|
{
|
|
|
|
|
path: '/doc/info',
|
|
|
|
|
name: '文档信息',
|
|
|
|
|
meta: {
|
|
|
|
|
icon: 'InfoCircleOutlined',
|
|
|
|
|
},
|
|
|
|
|
component: () => import('./views/doc/DocInfo.vue')
|
|
|
|
|
},
|
2021-10-20 22:32:25 +08:00
|
|
|
{
|
|
|
|
|
path: '/doc/manage',
|
2021-10-28 23:25:12 +08:00
|
|
|
name: '文档地址管理',
|
2021-10-20 22:32:25 +08:00
|
|
|
meta: {
|
2021-10-20 23:34:59 +08:00
|
|
|
icon: 'FileTextOutlined'
|
2021-10-20 22:32:25 +08:00
|
|
|
},
|
|
|
|
|
component: () => import('./views/doc/DocManage.vue')
|
|
|
|
|
},
|
2021-10-17 19:50:22 +08:00
|
|
|
{
|
|
|
|
|
path: '/doc/setting',
|
|
|
|
|
name: '系统配置',
|
|
|
|
|
meta: {
|
|
|
|
|
icon: 'SettingOutlined'
|
|
|
|
|
},
|
2021-11-09 22:54:37 +08:00
|
|
|
component: EmptyKeepAliveLayout,
|
2021-10-17 19:50:22 +08:00
|
|
|
children: [
|
2021-10-28 23:25:12 +08:00
|
|
|
{
|
|
|
|
|
path: '/doc/setting/globalParam',
|
|
|
|
|
name: '全局参数',
|
|
|
|
|
component: () => import('./views/doc/GlobalParam.vue')
|
|
|
|
|
},
|
2021-10-17 19:50:22 +08:00
|
|
|
{
|
|
|
|
|
path: '/doc/setting/view',
|
|
|
|
|
name: '展示配置',
|
2021-10-28 23:25:12 +08:00
|
|
|
meta: {
|
|
|
|
|
hidden: true,
|
|
|
|
|
},
|
2021-10-17 19:50:22 +08:00
|
|
|
component: () => import('./views/common/SettingView.vue')
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/doc/view',
|
|
|
|
|
name: '文档展示',
|
|
|
|
|
meta: {
|
|
|
|
|
hidden: true,
|
|
|
|
|
},
|
|
|
|
|
component: () => import('./views/doc/DocView.vue')
|
|
|
|
|
},
|
2021-11-14 23:05:24 +08:00
|
|
|
{
|
|
|
|
|
path: '/doc/apiRequest',
|
|
|
|
|
name: '接口请求',
|
|
|
|
|
meta: {
|
|
|
|
|
hidden: true,
|
|
|
|
|
},
|
|
|
|
|
component: () => import('./views/apiRequest/ApiRequest.vue')
|
|
|
|
|
},
|
2021-10-17 19:50:22 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
export default routers;
|