From 5ac06ce8d6e0a4895ee587836c8f1c5be32edda1 Mon Sep 17 00:00:00 2001 From: guoyue Date: Mon, 17 Oct 2022 14:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E7=94=B3?= =?UTF-8?q?=E8=B4=AD=E8=BD=A6=E5=88=A0=E9=99=A4=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4id=E5=8F=82=E6=95=B0=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/personalCenter/components/PurchaseVehicle.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/src/views/personalCenter/components/PurchaseVehicle.vue b/front/src/views/personalCenter/components/PurchaseVehicle.vue index 46e032f6..2c6cb06f 100644 --- a/front/src/views/personalCenter/components/PurchaseVehicle.vue +++ b/front/src/views/personalCenter/components/PurchaseVehicle.vue @@ -650,17 +650,19 @@ const ceshiFunction = () => { } // delOne delList handleDelete const handleDelete = (item, index) => { + console.log('item, index------------>', item, index); + console.log('item------------>', item); let delArr = []; // 单个删除 - if (item) { + if (index) { delArr = [item.id] } else { // 批量删除 if (checkedListAbility.value.length == 0) { return message.warning('请先选择需要操作的数据!') } else { - delArr = checkedListAbility.value.map(v=>v.id) + delArr = checkedListAbility.value } } sgcDel({