完善部分平台治理功能,及修改看板缺陷

This commit is contained in:
wangjiming
2026-08-10 11:41:16 +08:00
parent 75cc105ebc
commit f809825a7d
18 changed files with 1873 additions and 362 deletions

View File

@@ -388,6 +388,16 @@ router.beforeEach((to, _from, next) => {
next({ name: 'permission-denied', replace: true })
return
}
// user-settings 权限对应的页面仅管理员可访问
if (permission === 'user-settings' && !auth.isAdmin) {
next({ name: 'permission-denied', replace: true })
return
}
// 算力节点仅管理员可访问
if (permission === 'compute' && !auth.isAdmin) {
next({ name: 'permission-denied', replace: true })
return
}
}
// 路由切换时记录业务模块访问(用于看板用户操作分布统计)