@@ -80,14 +80,14 @@ const asyncRouterMap = [
8080 path: '/dashboard/analysis',
8181 name: 'Analysis',
8282 component: () => import('@/views/dashboard/Analysis'),
83- meta: {title: '分析页', hideHeader: true, permission: ['dashboard']}
83+ meta: {title: '分析页', permission: ['dashboard']}
8484 },
8585 {
8686 path: '/dashboard/monitor',
8787 name: 'Monitor',
8888 hidden: true,
8989 component: () => import('@/views/dashboard/Monitor'),
90- meta: {title: '监控页', hideHeader: true, permission: ['dashboard']}
90+ meta: {title: '监控页', permission: ['dashboard']}
9191 },
9292 {
9393 path: '/dashboard/workplace',
@@ -97,6 +97,31 @@ const asyncRouterMap = [
9797 }
9898 ]
9999 },
100+
101+ // result
102+ {
103+ path: '/result',
104+ name: 'result',
105+ component: PageView,
106+ redirect: '/result/success',
107+ meta: { title: '结果页', icon: 'check-circle-o', permission: [ 'result' ] },
108+ children: [
109+ {
110+ path: '/result/success',
111+ name: 'ResultSuccess',
112+ component: () => import(/* webpackChunkName: "result" */ '@/views/result/Success'),
113+ // 该页面隐藏面包屑和页面标题栏
114+ meta: { title: '成功', hiddenHeaderContent: true, permission: [ 'result' ] }
115+ },
116+ {
117+ path: '/result/fail',
118+ name: 'ResultFail',
119+ component: () => import(/* webpackChunkName: "result" */ '@/views/result/Error'),
120+ // 该页面隐藏面包屑和页面标题栏
121+ meta: { title: '失败', hiddenHeaderContent: true, permission: [ 'result' ] }
122+ }
123+ ]
124+ },
100125 ...
101126 ]
102127 },
@@ -105,5 +130,4 @@ const asyncRouterMap = [
105130
106131> 1 . 请注意 ` component: () => import('..') ` 方式引入路由的页面组件为 懒加载模式。具体可以看 [ Vue 官方文档] ( https://router.vuejs.org/zh/guide/advanced/lazy-loading.html )
107132> 2 . 增加新的路由应该增加在 '/' (index) 路由的 ` children ` 内
108- >
109-
133+ > 3 . ` permission ` 可以进行自定义修改,只需要对这个模块进行自定义修改即可 [ src/store/modules/permission.js#L10] ( https://github.com/sendya/ant-design-pro-vue/blob/master/src/store/modules/permission.js#L10 )
0 commit comments