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