This commit is contained in:
aihe 2024-07-16 21:39:52 +08:00
parent 762bba38b7
commit 40847f3ff5

View File

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