chenrui пре 4 година
родитељ
комит
c3ea95674f
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/components/UploadFile/index.vue

+ 3 - 1
src/components/UploadFile/index.vue

@@ -117,13 +117,15 @@ export default {
         } else if (this.uploadType == 'attach') { // 附件
           a.map((item, index) => {
             if (item) {
+              const arr = []
+              arr.push(item) //  包裹成与新上传文件数据返回结构一致
               temp.push({
                 uid: index,
                 name: item.fileName,
                 status: 'done',
                 url: item.filePath,
                 response: {
-                  data: item
+                  data: arr
                 }
               })
             }