文件上传

This commit is contained in:
JeromeSoar
2022-04-24 18:05:54 +08:00
parent df23750203
commit 145238ea96
2 changed files with 3 additions and 2 deletions

View File

@ -127,7 +127,7 @@ export default {
},
// 上传成功回调
handleUploadSuccess(res) {
this.uploadList.push({ name: res.fileName, url: res.fileName });
this.uploadList.push({ name: res.data, url: res.data });
if (this.uploadList.length === this.number) {
this.fileList = this.fileList.concat(this.uploadList);
this.uploadList = [];