bug
zhangzeli
2022-01-11 19c87c33b2892d8b7ec40ee3c569e25947623da6
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import Main from '@/views/Main.vue';
 
// 不作为Main组件的子页面展示的页面单独写,如下
export const loginRouter = {
    path: '/login',
    name: 'login',
    meta: {
        title: '登录 - XBoot前后端分离开发平台 '
    },
    component: () => import('@/views/login.vue')
};
 
export const registRouter = {
    path: '/regist',
    name: 'regist',
    meta: {
        title: '注册 - XBoot前后端分离开发平台'
    },
    component: () => import('@/views/regist.vue')
};
 
export const registResult = {
    path: '/regist-result',
    name: 'regist-result',
    meta: {
        title: '注册结果 - XBoot前后端分离开发平台'
    },
    component: () => import('@/views/regist-result.vue')
};
 
export const reset = {
    path: '/reset',
    name: 'reset',
    meta: {
        title: '重置密码 - XBoot前后端分离开发平台'
    },
    component: () => import('@/views/reset.vue')
};
 
export const relateRouter = {
    path: '/relate',
    name: 'relate',
    meta: {
        title: '绑定账号 - XBoot前后端分离开发平台 '
    },
    component: () => import('@/views/relate.vue')
};
 
export const authorizeRouter = {
    path: '/authorize',
    name: 'authorize',
    meta: {
        title: 'XBoot统一认证平台 - XBoot前后端分离开发平台 '
    },
    component: () => import('@/views/authorize.vue')
};
 
// export const page404 = {
//     path: '/*',
//     name: 'error-404',
//     meta: {
//         title: '404-页面不存在'
//     },
//     component: () => import('@/views/error-page/404.vue')
// };
 
export const page403 = {
    path: '/403',
    meta: {
        title: '403-权限不足'
    },
    name: 'error-403',
    component: () => import('@/views/error-page/403.vue')
};
 
export const page500 = {
    path: '/500',
    meta: {
        title: '500-服务端错误'
    },
    name: 'error-500',
    component: () => import('@/views/error-page/500.vue')
};
 
export const home2 = {
    path: '/home2',
    meta: {
        title: 'home'
    },
    name: 'home',
    component: () => import('@/views/sys/user-manage/userManage.vue')
};
 
// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
export const otherRouter = {
    path: '/',
    name: 'otherRouter',
    redirect: '/home',
    component: Main,
    children: [
        { path: 'home', title: { i18n: 'home' }, name: 'home_index', component: () => import('@/views/home/home.vue') },
        { path: 'ownspace', title: '个人中心', name: 'ownspace_index', component: () => import('@/views/own-space/own-space.vue') },
        { path: 'message', title: '消息中心', name: 'message_index', component: () => import('@/views/message/message.vue') },
        { path: 'add', title: '添加', name: 'add', component: () => import('@/views/xboot-vue-template/new-window/add.vue') },
        { path: 'edit', title: '编辑', name: 'edit', component: () => import('@/views/xboot-vue-template/new-window/edit.vue') },
        { path: 'leave', title: '请假申请', name: 'leave', component: () => import('@/views/activiti/business/leave.vue') },
        { path: 'historic-detail', title: '流程进度历史详情', name: 'historic_detail', component: () => import('@/views/activiti/historic-detail/historicDetail.vue') }
    ]
};
 
export const appRouter = [];
 
// 所有上面定义的路由都要写在下面的routers里
export const routers = [
    loginRouter,
    registRouter,
    registResult,
    reset,
    relateRouter,
    authorizeRouter,
    otherRouter,
    ...appRouter,
    page500,
    page403,
    home2
];