Commit d27d3dae9e89ab86c7ba96cc79ffd7ee7eb04817
Merge branch 'fix/category' into 'main_dev'
fix: 修改产品品类删除权限问题 See merge request yunteng/thingskit-front!1008
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 | ); | ... | ... |