This commit is contained in:
fengchuanhn@gmail.com
2026-05-21 02:40:08 +08:00
parent 14cf9b7bf5
commit 426a69cd69
14 changed files with 754 additions and 45 deletions

View File

@@ -376,7 +376,8 @@ router.beforeEach((to) => {
.find((role) => role != null);
console.log('requiredRole',requiredRole);
console.log('auth.roleId',auth.roleId);
if (requiredRole != null && auth.roleId !== requiredRole) {
return { name: "home" };