Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -209,9 +209,10 @@ |
209 | 209 | const handleSuccess = () => { |
210 | 210 | reload(); |
211 | 211 | }; |
212 | - | |
213 | 212 | const { hasBatchDelete, handleDeleteOrBatchDelete, selectionOptions } = useBatchDelete( |
214 | - props.record.ifShowClass && (isPlatformAdmin || isSysadmin) ? deleteModelCategory : deleteModel, | |
213 | + props.record.ifShowClass && (unref(isPlatformAdmin) || unref(isSysadmin)) | |
214 | + ? deleteModelCategory | |
215 | + : deleteModel, | |
215 | 216 | handleSuccess, |
216 | 217 | setProps |
217 | 218 | ); | ... | ... |