mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
-- fix 项目权限
This commit is contained in:
@@ -38,13 +38,13 @@ export function checkPer(per,createId) {
|
||||
if (store?.state?.userInfo?.roleList.some(t => t.code === "system-admin")) {
|
||||
return true;
|
||||
}
|
||||
if(per){
|
||||
return (per + "").split(",").some(t => admin.some(s => s == t));
|
||||
}
|
||||
if (store?.state?.userInfo?.isHrbp) {
|
||||
return true;
|
||||
}
|
||||
if (!per) {
|
||||
return false;
|
||||
}
|
||||
return (per + "").split(",").some(t => admin.some(s => s == t));
|
||||
return false
|
||||
}
|
||||
|
||||
const adminOwner = [6, 9, 12];
|
||||
|
||||
Reference in New Issue
Block a user