Commit 013cb7f16bb8ccb6606d57371c68d5f7f16017e3

Authored by CXM
Committed by GitHub
1 parent c2b207dd

fix: fix base64 blob (#1356)

* fix(type): fix ant-design-vue  ->

* fix: fix base64 blob
src/utils/file/base64Conver.ts
... ... @@ -5,7 +5,7 @@ export function dataURLtoBlob(base64Buf: string): Blob {
5 5 const arr = base64Buf.split(',');
6 6 const typeItem = arr[0];
7 7 const mime = typeItem.match(/:(.*?);/)![1];
8   - const bstr = atob(arr[1]);
  8 + const bstr = window.atob(arr[1]);
9 9 let n = bstr.length;
10 10 const u8arr = new Uint8Array(n);
11 11 while (n--) {
... ...