|
|
@@ -119,9 +119,9 @@ export function handlePreviewImg() {
|
|
|
} else {
|
|
|
if (!file.url && !file.preview) {
|
|
|
file.preview = (await getBase64(file.originFileObj)) as string;
|
|
|
- previewImage.value = file.url || file.preview;
|
|
|
- previewVisible.value = true;
|
|
|
}
|
|
|
+ previewImage.value = file.url || file.preview;
|
|
|
+ previewVisible.value = true;
|
|
|
}
|
|
|
}
|
|
|
return { previewVisible, previewImage, cancelImg, previewImg, getImgName }
|