From 4d6f0e8334b46a36134769a82c26d74ac5e83392 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 29 Mar 2022 16:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMonitoringObject/Add.vue | 2 +- src/apps/AppMonitoringObject/List.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index dfb4d3af..17c9ed14 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -367,7 +367,7 @@ export default { ...this.form, id: this.isEdit ? this.id : '' }).then(res => { - if (res.code === 0) { + if (res.code == 0) { this.$u.toast(this.isEdit ? '保存成功' : '提交成功') uni.$emit('reload') uni.navigateBack({ diff --git a/src/apps/AppMonitoringObject/List.vue b/src/apps/AppMonitoringObject/List.vue index c2823094..59853305 100644 --- a/src/apps/AppMonitoringObject/List.vue +++ b/src/apps/AppMonitoringObject/List.vue @@ -85,13 +85,13 @@ export default { this.$dict.load('fpPrtpStatus').then(() => { this.isGirdUser() }) + uni.$on('reload', () => { + this.getListInit() + }) }, onShow() { document.title = '监测对象' - uni.$on('reload', () => { - this.getListInit() - }) }, methods: { isGirdUser() {