From 930d067aab63b7ff23c5d38530903426bca1f6ad Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 16 Jun 2022 11:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppMessageNotification/AppMessageNotification.vue | 4 +++- src/project/police/AppPeopleList/Add.vue | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/project/police/AppMessageNotification/AppMessageNotification.vue b/src/project/police/AppMessageNotification/AppMessageNotification.vue index cea40045..591d6ae7 100644 --- a/src/project/police/AppMessageNotification/AppMessageNotification.vue +++ b/src/project/police/AppMessageNotification/AppMessageNotification.vue @@ -233,7 +233,9 @@ export default { this.$http.post("/app/pushmessage/addOrUpdate", params).then(res => { if (res?.code == 0) { this.$u.toast('发送成功') - this.back() + setTimeout(() => { + this.back() + }, 500) // this.form = { // content: '', // contentType: 'text', diff --git a/src/project/police/AppPeopleList/Add.vue b/src/project/police/AppPeopleList/Add.vue index 6fe65da3..22bda7b0 100644 --- a/src/project/police/AppPeopleList/Add.vue +++ b/src/project/police/AppPeopleList/Add.vue @@ -257,9 +257,11 @@ export default { if (res.code === 0) { this.$u.toast('新增成功') uni.$emit('reload') - uni.navigateBack({ - delta: 1 - }) + setTimeout(() => { + uni.navigateBack({ + delta: 1 + }) + }, 500) } }).catch((err) => { this.$u.toast(err)