|
@@ -182,9 +182,14 @@ export default {
|
|
|
} else if (this.uploadType == 'attach') { // 附件 将接口的返回数据返回页面
|
|
|
a.map(item => {
|
|
|
if (item.response && item.status == 'done') {
|
|
|
- temp = [...temp, ...item.response.data]
|
|
|
+ if (item.response.data instanceof Array) {
|
|
|
+ temp = [...temp, ...item.response.data]
|
|
|
+ } else {
|
|
|
+ temp = [...temp, ...[item.response.data]]
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
+ console.log(temp)
|
|
|
obj = JSON.stringify(temp)
|
|
|
}
|
|
|
}
|