Explorar o código

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

johnsen hai 4 días
pai
achega
2d84749e9a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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