zs 2 years ago
parent
commit
857b3f19c4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pagesMy/address/index.vue

+ 1 - 0
pagesMy/address/index.vue

@@ -298,6 +298,7 @@
 						if (res.confirm) {
 						if (res.confirm) {
 							const arr = await that.$api(`/address/${e._id}`, 'DELETE');
 							const arr = await that.$api(`/address/${e._id}`, 'DELETE');
 							if (arr.errcode == '0') {
 							if (arr.errcode == '0') {
+								if (that.address === e._id) uni.$emit("id", '')
 								uni.showToast({
 								uni.showToast({
 									title: '删除信息成功',
 									title: '删除信息成功',
 									icon: 'none'
 									icon: 'none'