fix dark:

This commit is contained in:
Chuck1sn
2025-05-16 12:56:59 +08:00
parent b2e07d0227
commit 5b8f262450
35 changed files with 390 additions and 433 deletions

View File

@@ -24,6 +24,7 @@ export const permissionGuard: NavigationGuard = (to) => {
routeMeta.hasPermission,
);
if (!hasPermission) {
console.error(`您没有请求页面的相关权限:${to.path}`);
return false;
}
}
@@ -35,6 +36,7 @@ export const roleGuard: NavigationGuard = (to) => {
if (routeMeta.hasRole) {
const hasRole = userStore.roleCodes?.includes(routeMeta.hasRole);
if (!hasRole) {
console.error(`您没有请求页面的相关角色:${to.path}`);
return false;
}
}