瀏覽代碼

本地加载

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))