This commit is contained in:
2025-04-02 10:35:17 +08:00
commit 89db955ec1
701 changed files with 91082 additions and 0 deletions

21
commons/utils/ent.js Normal file
View File

@@ -0,0 +1,21 @@
/**
* 权限判断
*
* @author terrfly
* @site https://www.jeequan.com
* @date 2022/11/22 14:29
*/
import storageManage from '@/commons/utils/storageManage.js'
const model = {
// 判断是否包含该权限
has(entId){
let userInfo = storageManage.userInfo()
if(userInfo && userInfo.entIdList && userInfo.entIdList.indexOf(entId) >= 0){
return true;
}
return false;
}
}
export default model