From 4b22b9a74e8bd56f5d098ffb9dee46edfe0549cc Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Tue, 16 Jul 2024 21:39:37 +0800 Subject: [PATCH] uu --- pages/address/list.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/address/list.vue b/pages/address/list.vue index 45418d1..1541693 100644 --- a/pages/address/list.vue +++ b/pages/address/list.vue @@ -160,10 +160,12 @@ this.goto(`address/edit?id=${item.id || ''}&addressType=${this.searchParam.addressType}`) }, async handleDelItem(item) { - await this.confirmModal('确认要删除吗?') - await apiService.deleteAddressById({ id: item.id, _loading: true }) - this.showToast('操作成功') - this.$refs.listRef.getDataList(true) // 重置到第一页数据 + let bl = await this.confirmModal('确认要删除吗?') + if(bl) { + await apiService.deleteAddressById({ id: item.id, _loading: true }) + this.showToast('操作成功') + this.$refs.listRef.getDataList(true) // 重置到第一页数据 + } }, async handleDefaultSwitch(item) { try{