diff --git a/src/views/erp/moldlist/index.vue b/src/views/erp/moldlist/index.vue index 08f27119..e15b8a17 100644 --- a/src/views/erp/moldlist/index.vue +++ b/src/views/erp/moldlist/index.vue @@ -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?.()