20260511173242
This commit is contained in:
1 parent
56f5ba4e6b
commit
364d29dbaa
20 files changed
+2992
-88
No files matched your search
@@ -76,16 +76,28 @@ export const usePermissionStore = defineStore("permission", () => {
|
||||
}
|
||||
|
||||
const moduleid = route.meta.moduleId;
|
||||
if (!moduleid) return false;
|
||||
|
||||
if (!hasModulePermission(moduleid)) return false;
|
||||
if (!moduleid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const hasModule = hasModulePermission(moduleid);
|
||||
|
||||
if (!hasModule) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const actions = actionPermissions.value.filter((item) => item.ModuleID === moduleid);
|
||||
|
||||
const action = actions.find((item) => Number(item.b_ivalue) === Number(id));
|
||||
|
||||
if (!action) return false;
|
||||
if (action.b_canuse === "0") return false;
|
||||
if (!action) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (action.b_canuse === "0") {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 其他情况允许
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user