huangbin 4 anos atrás
pai
commit
aac44f956b
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/common/setup/upload/index.ts

+ 2 - 2
src/common/setup/upload/index.ts

@@ -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 }