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() {