This commit is contained in:
aihe 2024-07-16 21:39:37 +08:00
parent 8be13768ab
commit 4b22b9a74e

View File

@ -160,10 +160,12 @@
this.goto(`address/edit?id=${item.id || ''}&addressType=${this.searchParam.addressType}`) this.goto(`address/edit?id=${item.id || ''}&addressType=${this.searchParam.addressType}`)
}, },
async handleDelItem(item) { async handleDelItem(item) {
await this.confirmModal('确认要删除吗?') let bl = await this.confirmModal('确认要删除吗?')
await apiService.deleteAddressById({ id: item.id, _loading: true }) if(bl) {
this.showToast('操作成功') await apiService.deleteAddressById({ id: item.id, _loading: true })
this.$refs.listRef.getDataList(true) // 重置到第一页数据 this.showToast('操作成功')
this.$refs.listRef.getDataList(true) // 重置到第一页数据
}
}, },
async handleDefaultSwitch(item) { async handleDefaultSwitch(item) {
try{ try{