大赛训练产品路由权限调整
This commit is contained in:
parent
6912d01d2c
commit
5ed4f1e3dc
@ -677,16 +677,22 @@ export const publicAsyncRoute = [
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/contest/list',
|
||||
component: ContestList,
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/contest/detail',
|
||||
component: ContestDetail,
|
||||
hidden: true
|
||||
path: '/contest',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
component: ContestList,
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'detail',
|
||||
component: ContestDetail,
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
];
|
||||
// 城市轨道项目
|
||||
export const asyncRouter = [
|
||||
|
@ -40,7 +40,9 @@ function hasPermission(roles, route, parentsRoles) {
|
||||
*/
|
||||
function resetAsyncRouter() {
|
||||
let list = publicAsyncRoute;
|
||||
list = [...list, ...asyncRouter];
|
||||
if (getSessionStorage('project') !== 'dsxl') {
|
||||
list = [...list, ...asyncRouter];
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user