perf: 拷贝一份新的路由配置、注释产品路由校验

This commit is contained in:
rd
2025-08-14 14:46:51 +08:00
parent 1f3826e9dc
commit 9b9f66b5af
20 changed files with 989 additions and 13 deletions

View File

@ -26,16 +26,16 @@ export default function setupUserLoginInfoGuard(router: Router) {
return;
}
if (requiresAuth) {
const hasPermission = checkRoutePermission(routeName);
if (!hasPermission) {
AMessage.error('您没有权限访问该页面');
next('/');
return;
}
next();
return;
}
// if (requiresAuth) {
// const hasPermission = checkRoutePermission(routeName);
// if (!hasPermission) {
// AMessage.error('您没有权限访问该页面');
// next('/');
// return;
// }
// next();
// return;
// }
next();
});