mo 2 anni fa
parent
commit
f384690ee9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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))