2020-06-06 15:34:49 +08:00
|
|
|
import GlobalLayout from './components/layouts/GlobalLayout'
|
2021-01-06 22:30:04 +08:00
|
|
|
import ShareLayout from './components/layouts/ShareLayout'
|
2021-05-13 22:02:10 +08:00
|
|
|
import ShareMobileLayout from './components/layouts/ShareMobileLayout'
|
2019-05-17 18:23:03 +08:00
|
|
|
|
|
|
|
|
let routes = [
|
2020-06-06 15:34:49 +08:00
|
|
|
{path: '/', redirect: '/home'},
|
2020-06-15 22:41:11 +08:00
|
|
|
{path: '/page/search', name: 'WIKI-全局搜索', component: () => import('@/views/page/Search')},
|
|
|
|
|
{path: '/common/noAuth', name: 'WIKI-没有权限', component: () => import('@/views/common/NoAuth')},
|
2020-06-06 15:34:49 +08:00
|
|
|
{path: '/page/editorTest', name: '编辑内容', component: () => import('@/views/page/EditorTest')},
|
2020-05-29 22:38:25 +08:00
|
|
|
{
|
|
|
|
|
path: '/',
|
2020-06-06 15:34:49 +08:00
|
|
|
name: '页面管理',
|
|
|
|
|
component: GlobalLayout,
|
2020-05-29 22:38:25 +08:00
|
|
|
children: [
|
2020-06-15 22:41:11 +08:00
|
|
|
{path: '/home', name: 'WIKI文档管理', component: () => import('@/views/home/Home')},
|
|
|
|
|
{path: '/user/myInfo', name: 'WIKI-我的信息', component: () => import('@/views/user/MyInfo')},
|
|
|
|
|
{path: '/page/show', name: 'WIKI-内容展示', component: () => import('@/views/page/Show')},
|
|
|
|
|
{path: '/page/edit', name: 'WIKI-编辑内容', component: () => import('@/views/page/Edit')},
|
2021-02-09 22:57:52 +08:00
|
|
|
{path: '/space/manage', name: 'WIKI-空间管理', component: () => import('@/views/space/Manage')},
|
2020-06-15 22:41:11 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
name: '页面管理',
|
2021-01-06 22:30:04 +08:00
|
|
|
component: ShareLayout,
|
2020-06-15 22:41:11 +08:00
|
|
|
children: [
|
2021-01-06 22:30:04 +08:00
|
|
|
{path: '/page/share/home', name: 'WIKI-开放文档', component: () => import('@/views/page/share/pc/Home')},
|
|
|
|
|
{path: '/page/share/view', name: 'WIKI-内容展示', component: () => import('@/views/page/share/pc/View')},
|
2020-05-29 22:38:25 +08:00
|
|
|
]
|
2021-01-06 22:30:04 +08:00
|
|
|
},
|
2021-05-13 22:02:10 +08:00
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
name: '页面管理',
|
|
|
|
|
component: ShareMobileLayout,
|
|
|
|
|
children: [
|
2021-05-14 23:45:12 +08:00
|
|
|
{path: '/page/share/mobile/view', name: 'WIKI-开放文档', component: () => import('@/views/page/share/mobile/View')},
|
2021-05-13 22:02:10 +08:00
|
|
|
]
|
|
|
|
|
},
|
2019-05-17 18:23:03 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default routes;
|