【更新】更新文件上传组件,返回名称跟下载url

pull/72/MERGE
小诺 2023-02-19 17:12:02 +08:00 committed by 俞宝山
parent 6cf3425f13
commit 08e70171bc
1 changed files with 5 additions and 1 deletions

View File

@ -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) {