From 013cb7f16bb8ccb6606d57371c68d5f7f16017e3 Mon Sep 17 00:00:00 2001 From: CXM <16154023+littlecxm@users.noreply.github.com> Date: Thu, 11 Nov 2021 22:18:22 +0800 Subject: [PATCH] fix: fix base64 blob (#1356) * fix(type): fix ant-design-vue -> * fix: fix base64 blob --- src/utils/file/base64Conver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file/base64Conver.ts b/src/utils/file/base64Conver.ts index d77618a0..6751d977 100644 --- a/src/utils/file/base64Conver.ts +++ b/src/utils/file/base64Conver.ts @@ -5,7 +5,7 @@ export function dataURLtoBlob(base64Buf: string): Blob { const arr = base64Buf.split(','); const typeItem = arr[0]; const mime = typeItem.match(/:(.*?);/)![1]; - const bstr = atob(arr[1]); + const bstr = window.atob(arr[1]); let n = bstr.length; const u8arr = new Uint8Array(n); while (n--) { -- GitLab