From 45f1fb29ff817532c6a6b64c9c109f3c5b3de838 Mon Sep 17 00:00:00 2001 From: yujintao Date: Wed, 25 Sep 2019 15:08:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=97=BB=E4=B8=8E=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/news/news-add-or-update.vue | 4 ++-- src/views/modules/news/notice-add-or-update.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/modules/news/news-add-or-update.vue b/src/views/modules/news/news-add-or-update.vue index b3cca2d0..5ee138f6 100644 --- a/src/views/modules/news/news-add-or-update.vue +++ b/src/views/modules/news/news-add-or-update.vue @@ -232,7 +232,7 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } - this.dataForm = res.data + this.dataForm = { ...this.dataForm, ...res.data } this.resetRegistTime() this.quillEditor.root.innerHTML = res.data.newsContent if (this.dataForm.streetId) { @@ -371,7 +371,7 @@ export default { } }) }).catch(() => { }) - this.dataForm = [] + this.dataForm = {} }) }, 1000, { 'leading': true, 'trailing': false }) }, diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index 554d70b5..e2c9db20 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -197,7 +197,7 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } - this.dataForm = res.data + this.dataForm = { ...this.dataForm, ...res.data } this.quillEditor.root.innerHTML = res.data.noticeContent if (this.dataForm.streetId) { if (this.dataForm.communityId === 0) {