From e5f9c86fd3d8bdab3549cde37943fc1f47ffaec2 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 20 Apr 2022 14:39:18 +0800 Subject: [PATCH] =?UTF-8?q?toast=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppFourNeighbor/Add.vue | 8 +++++--- src/apps/AppFourNeighbor/Content.vue | 8 +++++--- src/apps/AppPartyPoints/Add.vue | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/apps/AppFourNeighbor/Add.vue b/src/apps/AppFourNeighbor/Add.vue index 256c19f6..3f9c8518 100644 --- a/src/apps/AppFourNeighbor/Add.vue +++ b/src/apps/AppFourNeighbor/Add.vue @@ -97,9 +97,11 @@ export default { if (res.code == 0) { this.$u.toast('提交成功') uni.$emit('reload') - uni.navigateBack({ - delta: 1 - }) + setTimeout(() => { + uni.navigateBack({ + delta: 1 + }) + }, 600) } }).catch((err) => { this.$u.toast(err) diff --git a/src/apps/AppFourNeighbor/Content.vue b/src/apps/AppFourNeighbor/Content.vue index 634a92c3..64b2b9aa 100644 --- a/src/apps/AppFourNeighbor/Content.vue +++ b/src/apps/AppFourNeighbor/Content.vue @@ -43,10 +43,12 @@ export default { this.$http.post(`/app/apppartyfourlinkage/auditById?id=${this.id}&status=0&remark=${this.remark}`).then((res) => { if (res.code == 0) { this.$u.toast('审核成功') - uni.navigateBack({ - delta: 1 - }) uni.$emit('reload') + setTimeout(() => { + uni.navigateBack({ + delta: 1 + }) + }, 600) } }) } diff --git a/src/apps/AppPartyPoints/Add.vue b/src/apps/AppPartyPoints/Add.vue index 057d3857..cb856c89 100644 --- a/src/apps/AppPartyPoints/Add.vue +++ b/src/apps/AppPartyPoints/Add.vue @@ -88,9 +88,11 @@ export default { if (res.code == 0) { this.$u.toast('提交成功') uni.$emit('reload') - uni.navigateBack({ - delta: 1 - }) + setTimeout(() => { + uni.navigateBack({ + delta: 1 + }) + }, 600) } }).catch((err) => { this.$u.toast(err)