perf: 拷贝一份新的路由配置、注释产品路由校验
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user