Merge pull request #49 from JavaLionLi/patch-2

fix 修复图片上传组件 数据异常问题
This commit is contained in:
若依 2022-04-24 08:25:47 +08:00 committed by GitHub
commit b2294592f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ function handleRemove(file, files) {
function handleUploadSuccess(res) {
uploadList.value.push({ name: res.fileName, url: res.fileName });
if (uploadList.value.length === number.value) {
fileList.value = fileList.value.concat(uploadList.value);
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
uploadList.value = [];
number.value = 0;
emit("update:modelValue", listToString(fileList.value));