Преглед изворни кода

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