소스 검색

本地加载

1
mo 2 년 전
부모
커밋
f384690ee9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/helpers/imageFunction.ts

+ 1 - 1
src/helpers/imageFunction.ts

@@ -39,7 +39,7 @@ export const addWatermark = async (canvas, text) => {
 
     img.src = imgList
 
-    img.setAttribute('crossOrigin', 'anonymous') // 防止跨域引起的 Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
+    // img.setAttribute('crossOrigin', 'anonymous') // 防止跨域引起的 Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
 
     await new Promise(resolve => (img.onload = resolve))