diff --git a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue index 64ce08cd..1ac71d93 100644 --- a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue +++ b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue @@ -380,16 +380,13 @@ export default { downloadFile(`/laws/dataCenter/lawsDataCenterFile/download?id=${id}`, fileName) }, hasManagePermission ({ authManageIds }) { - if (!authManageIds) { - return true - } const adminRoleList = window._CONFIG.adminRoleCode.split(',') const userRoleList = this.userInfo.roleCode.split(',') const isAdmin = userRoleList.some(tt => adminRoleList.includes(tt)) if (isAdmin) { return true } - const authManageArr = authManageIds.split(',') + const authManageArr = (authManageIds || '').split(',') if (authManageArr.includes(this.userInfo.id)) { return true }