style:模具管理-删除接口更改

pull/1/head
黄伟杰 2 months ago
parent 28123d2457
commit 3f2502915c

@ -241,8 +241,8 @@ const handleDelete = async (ids: number | number[]) => {
//
await message.delConfirm()
//
const idsParam = buildIdsParam(ids)
await DeviceLedgerApi.deleteDeviceLedger(idsParam)
const idList = Array.isArray(ids) ? ids : [ids]
await Promise.all(idList.map((id) => MoldBrandApi.deleteMold(id)))
message.success(t('common.delSuccess'))
selectedIds.value = []
tableRef.value?.clearSelection?.()

Loading…
Cancel
Save