-- fix bug

This commit is contained in:
yuping
2023-03-06 12:31:28 +08:00
parent b3c86ffecb
commit ae685f7de5
3 changed files with 32 additions and 25 deletions

View File

@@ -31,7 +31,10 @@ export function traverseArr(arr, traverseObj, saveOld = false) {
const admin = [5, 6, 8, 9, 11, 12];
//检查 管理权和归属权
export function checkPer(per) {
export function checkPer(per,createId) {
if(createId && store?.state?.userInfo?.id === createId){
return true;
}
if (store?.state?.userInfo?.roleList.some(t => t.code === "system-admin")) {
return true;
}