fix: 修复多图片上传组件JS出错的bug

This commit is contained in:
diamont1001
2024-06-27 16:03:33 +08:00
parent cd89681281
commit 9b1a3623f6

View File

@@ -64,6 +64,11 @@ watch(
return;
}
if (newVal.length <= 0) {
fileList.value = [];
return;
}
fileList.value = newVal.map((filePath) => {
return { url: filePath } as UploadUserFile;
});