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({