mirror of https://gitee.com/xiaonuobase/snowy
【更新】更新文件上传组件,返回名称跟下载url
parent
6cf3425f13
commit
08e70171bc
|
@ -66,7 +66,11 @@
|
|||
for (let a = 0; a < props.uploadMumber; a++) {
|
||||
const file = fileList.value[a]
|
||||
if (file.status === 'done' && file.response && file.response.code === 200) {
|
||||
result.push(file.response.data)
|
||||
const resultObj = {
|
||||
name: file.name,
|
||||
url: file.response.data
|
||||
}
|
||||
result.push(resultObj)
|
||||
}
|
||||
}
|
||||
if (result.length > 0) {
|
||||
|
|
Loading…
Reference in New Issue