jwyu 1 year ago
parent
commit
2d8e2c2985
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/hooks/common.js

+ 2 - 0
src/hooks/common.js

@@ -46,7 +46,9 @@ export function transfImgTobase64(url) {
         }
         image.onerror = function (e) {
             console.log('图片加载失败',e);
+            
             resolve(url);
+            throw new Error(JSON.stringify(e))
         };
         image.src = url;
     })