修改完接口后刷新

This commit is contained in:
qiaomu 2025-02-25 10:33:14 +08:00
parent 28c4028893
commit 71194fbf1c
3 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,7 @@ Component({
}
alertSuccess("操作成功")
this.triggerEvent("ok")
this.setData({ data: {} })
return;
@ -66,6 +67,7 @@ Component({
})
},
onCancel() {
this.setData({ data: {} })
this.triggerEvent("cancel")
}
}

View File

@ -45,6 +45,7 @@ Component({
}
alertSuccess("操作成功")
this.triggerEvent("ok")
this.setData({ phone: "" })
return;
@ -56,6 +57,7 @@ Component({
})
},
onCancel() {
this.setData({ phone: "" })
this.triggerEvent("cancel")
}
}

View File

@ -103,7 +103,7 @@ Component({
this.handleCancel();
},
onUpdatePhoneConfirm() {
that.getTenementInfo();
this.getTenementInfo();
},
async getTenementInfo() {
const { tenement, park } = this.data;