Skip to content

Commit 013cb7f

Browse files
authored
fix: fix base64 blob (vbenjs#1356)
* fix(type): fix ant-design-vue -> * fix: fix base64 blob
1 parent c2b207d commit 013cb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utils/file/base64Conver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function dataURLtoBlob(base64Buf: string): Blob {
55
const arr = base64Buf.split(',');
66
const typeItem = arr[0];
77
const mime = typeItem.match(/:(.*?);/)![1];
8-
const bstr = atob(arr[1]);
8+
const bstr = window.atob(arr[1]);
99
let n = bstr.length;
1010
const u8arr = new Uint8Array(n);
1111
while (n--) {

0 commit comments

Comments
 (0)