瀏覽代碼

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

johnsen 1 月之前
父節點
當前提交
2d84749e9a
共有 1 個文件被更改,包括 3 次插入1 次删除
  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
       })
         .then((response) => {
-          this.form = response.data
+          const data = response.data
+          data.scopeUserIds = data.scopeUserIds?.join(',')
+          this.form = data
           this.show = this.form.public0
           this.formValidate()
           this.dialogLoading = false