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('提交成功') + } + }) } }) },