houzhongjian
2024-11-07 d36528bb496bb49adaad5ae6199b410d432b410c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import GlobalLayout from './components/layouts/GlobalLayout.vue'
import ShareLayout from './components/layouts/ShareLayout.vue'
import ShareMobileLayout from './components/layouts/ShareMobileLayout.vue'
 
import Search from './views/page/Search.vue'
import NoAuth from './views/common/NoAuth.vue'
 
import Home from './views/home/Home.vue'
import MyInfo from './views/user/MyInfo.vue'
import Show from './views/page/Show.vue'
import Edit from './views/page/Edit.vue'
 
import spaceManage from './views/space/Manage.vue'
 
import sharePcHome from './views/page/share/pc/Home.vue'
import sharePcView from './views/page/share/pc/View.vue'
import shareMobileView from './views/page/share/mobile/View.vue'
import Login from './views/user/Login.vue'
import Callback from './views/user/Callback.vue'
 
let routes = [
    {path: '/', redirect: '/home'},
    {
        path: '/user/login',
        name: '系统登录',
        component: Login,
        meta: {fullscreen: true}
    },
    {
        path: '/callback',
        name: '授权回调页面',
        component: Callback,
        meta: {fullscreen: true}
    },
    {path: '/page/search', name: 'WIKI-全局搜索', component: Search},
    {path: '/common/noAuth', name: 'WIKI-没有权限', component: NoAuth},
    {
        path: '/',
        name: '文档管理',
        component: GlobalLayout,
        children: [
            {path: '/home', name: 'WIKI文档管理', component: Home},
            {path: '/user/myInfo', name: 'WIKI-我的信息', component: MyInfo},
            {path: '/page/show', name: 'WIKI-页面查看', component: Show},
            {path: '/page/edit', name: 'WIKI-编辑内容', component: Edit},
            {path: '/space/manage', name: 'WIKI-空间管理', component: spaceManage},
        ],
    },
    {
        path: '/',
        name: 'PC端开放文档',
        component: ShareLayout,
        children: [
            {
                path: '/page/share/home',
                name: 'WIKI-开放文档',
                component: sharePcHome,
            },
            {
                path: '/page/share/view',
                name: 'WIKI-内容展示',
                component: sharePcView,
            },
        ],
    },
    {
        path: '/',
        name: 'APP端开放文档',
        component: ShareMobileLayout,
        children: [
            {
                path: '/page/share/mobile/view',
                name: 'WIKI-开放文档-APP',
                component: shareMobileView,
            },
        ],
    },
]
 
export default routes