Browse Source

fix: 保存草稿发布报错问题

johnsen 5 days ago
parent
commit
2d84749e9a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/platform/system/news/edit.vue

+ 3 - 1
src/views/platform/system/news/edit.vue

@@ -449,7 +449,9 @@ export default {
         newsId: this.formId
         newsId: this.formId
       })
       })
         .then((response) => {
         .then((response) => {
-          this.form = response.data
+          const data = response.data
+          data.scopeUserIds = data.scopeUserIds?.join(',')
+          this.form = data
           this.show = this.form.public0
           this.show = this.form.public0
           this.formValidate()
           this.formValidate()
           this.dialogLoading = false
           this.dialogLoading = false