tangning 5 months ago
parent
commit
b047295bf3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/util/index.ts

+ 1 - 0
src/util/index.ts

@@ -217,6 +217,7 @@ export const urlToBlob = async (url: string) => {
   try {
   try {
     const response = await fetch(url, { mode: 'no-cors' }); // 获取文件内容
     const response = await fetch(url, { mode: 'no-cors' }); // 获取文件内容
     const blob = await response.blob(); // 转成 blob
     const blob = await response.blob(); // 转成 blob
+    console.log('urlToBlob', blob);
     return blob;
     return blob;
   } catch (error) {
   } catch (error) {
     // 请求出错,说明图片不存在
     // 请求出错,说明图片不存在