Browse Source

反馈功能附件数据类型处理

ljb 7 months ago
parent
commit
e3a169aa78
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/page/index/top/feedback/comp.vue

+ 4 - 0
src/page/index/top/feedback/comp.vue

@@ -53,6 +53,10 @@ export default crudCommon({
     getFormData() {
       const newFormData = { ...this.form };
 
+      if (newFormData.attachment && newFormData.attachment instanceof Array) {
+        newFormData.attachment = newFormData.attachment.join(",");
+      }
+
       return newFormData;
     },
     handleDialogClose() {