fix: 修复多图片上传组件JS出错的bug
This commit is contained in:
@@ -64,6 +64,11 @@ watch(
|
||||
return;
|
||||
}
|
||||
|
||||
if (newVal.length <= 0) {
|
||||
fileList.value = [];
|
||||
return;
|
||||
}
|
||||
|
||||
fileList.value = newVal.map((filePath) => {
|
||||
return { url: filePath } as UploadUserFile;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user