Commit d27d3dae9e89ab86c7ba96cc79ffd7ee7eb04817

Authored by xp.Huang
2 parents 993ab44e 327fcdef

Merge branch 'fix/category' into 'main_dev'

fix: 修改产品品类删除权限问题

See merge request yunteng/thingskit-front!1008
@@ -209,9 +209,10 @@ @@ -209,9 +209,10 @@
209 const handleSuccess = () => { 209 const handleSuccess = () => {
210 reload(); 210 reload();
211 }; 211 };
212 -  
213 const { hasBatchDelete, handleDeleteOrBatchDelete, selectionOptions } = useBatchDelete( 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 handleSuccess, 216 handleSuccess,
216 setProps 217 setProps
217 ); 218 );