fix 修复图片上传组件 数据异常问题
对应gitee issue https://gitee.com/y_project/RuoYi-Vue/issues/I53CS3
This commit is contained in:
parent
59c114b6c0
commit
6b36385fa5
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue