Переглянути джерело

fix: 修复批量删除时参数格式错误的问题

liujt 7 місяців тому
батько
коміт
99b8c03e51

+ 2 - 4
src/views/saleManage/saleOrder/adjustmentNote‌/index.vue

@@ -434,12 +434,10 @@
 
       //删除弹框确定
       commitBtn() {
-        const dataId = this.selection.map((v) => v.id)?.join(',');
+        const dataId = this.selection.map((v) => v.id);
         console.log('dataId', dataId)
         // this.remove(dataId);
-        deleteBatch({
-          ids: dataId
-        }).then((res) => {
+        deleteBatch(dataId).then((res) => {
           this.$message.success('删除成功!');
           this.reload();
         });