修改 ImageUpload 组件的回显 url 地址

This commit is contained in:
quantulr
2022-09-05 10:41:30 +08:00
parent 309752b8bb
commit ae74847c93
3 changed files with 2 additions and 6 deletions

View File

@ -114,7 +114,7 @@ function handleRemove(file, files) {
// 上传成功回调
function handleUploadSuccess(res) {
uploadList.value.push({ name: res.fileName, url: res.fileName });
uploadList.value.push({ name: res.fileName, url: res.url });
if (uploadList.value.length === number.value) {
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
uploadList.value = [];