From 5bfd9cbc155688f5adf9197d148bc5d822a7f1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 5 Feb 2024 11:47:16 +0800 Subject: [PATCH] fix 81765 --- .../profileCenter/ProfileCenterList.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }