Commit 9b385000 authored by Smile's avatar Smile Committed by wux

app地址修改无法返回问题修改

parent f4e11231
......@@ -119,15 +119,25 @@ export default {
this.$refs.form.validate().then(async (res) => {
if (res) {
try {
const { code } = await this.$request.post(
await this.$request.post(
"/app-api/member/user-address/update",
this.form
);
if (code == 0) {
this.$route.params.addressId = "00000";
uni.$emit("refreshPreviousPage", "show");
uni.navigateBack();
}
).then(res => {
if (res.code == 0) {
this.$route.params.addressId = "00000";
uni.showModal({
title: null,
content:this.$lang.lang.notices.operation,
showCancel: false,
success: function (res) {
if (res.confirm) {
uni.$emit("refreshPreviousPage", "show");
uni.navigateBack();
}
}
})
}
});
} catch (err) {}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment