From bad694e75faa225a545aee7baa31198a9b1bbba5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 24 Dec 2021 17:35:03 +0800 Subject: [PATCH] BUG 26001 --- src/apps/AppBuilding/add.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/apps/AppBuilding/add.vue b/src/apps/AppBuilding/add.vue index 6174eba5..301ca666 100644 --- a/src/apps/AppBuilding/add.vue +++ b/src/apps/AppBuilding/add.vue @@ -150,7 +150,7 @@ export default { }) }, onShow() { - document.title = '房屋信息' + document.title = '房屋信息' }, methods: { @@ -176,11 +176,12 @@ export default { }, submit() { this.$http.post(`app/appcommunityhouseinfo/update`, this.houseInfo).then(res => { - if (res.code == 0) { - this.$u.toast('提交成功') - setTimeout(() => { - uni.navigateBack({}) - }, 600) + if (res?.code == 0) { + uni.navigateBack({ + success: () => { + this.$u.toast('提交成功') + } + }) } }) },