Commit e55dbbf80924c6d9864c08ee5d2709e36bc5de8c
Merge branch 'fix/DEFECT-2432' into 'main_dev'
fix: 云端删除物模型场景联动提示没有操作权限 See merge request yunteng/thingskit-front!1421
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -232,8 +232,8 @@ |
232 | 232 | |
233 | 233 | const handleDeleteOrBatchDelete = async (record?: ModelOfMatterItemRecordType) => { |
234 | 234 | const deleteFn = |
235 | - (props.record.ifShowClass && (unref(isPlatformAdmin) || unref(isSysadmin))) || | |
236 | - unref(isTenantAdmin) | |
235 | + props.record.ifShowClass && | |
236 | + (unref(isPlatformAdmin) || unref(isSysadmin) || unref(isTenantAdmin)) | |
237 | 237 | ? deleteModelCategory |
238 | 238 | : deleteModel; |
239 | 239 | ... | ... |