refactor: 前端统一使用prettier格式化&枚举值统一管理

This commit is contained in:
meilin.huang
2023-07-06 20:59:22 +08:00
parent f25bdb07ce
commit 5463ae9d7e
125 changed files with 3932 additions and 3735 deletions

View File

@@ -3,7 +3,7 @@ import { useUserInfo } from '@/store/userInfo';
/**
* 判断当前用户是否拥有指定权限
* @param code 权限code
* @returns
* @returns
*/
export function hasPerm(code: string) {
return useUserInfo().userInfo.permissions.some((v: any) => v === code);
@@ -22,4 +22,4 @@ export function hasPerms(permCodes: any[]) {
}
}
return res;
}
}