2021-10-17 19:50:22 +08:00
|
|
|
import PageLayout from './components/layouts/PageLayout.vue'
|
|
|
|
|
import EmptyLayout from './components/layouts/EmptyLayout.vue'
|
|
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
},
|
|
|
|
|
component: EmptyLayout,
|
|
|
|
|
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')
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
export default routers;
|