大赛训练产品路由权限调整

This commit is contained in:
fan 2024-02-28 10:04:26 +08:00
parent 6912d01d2c
commit 5ed4f1e3dc
2 changed files with 18 additions and 10 deletions

View File

@ -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 = [

View File

@ -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;
}