From 3884557dcef0f930092ae0c5107349f2e26e833c Mon Sep 17 00:00:00 2001 From: liyang Date: Fri, 30 Aug 2024 17:01:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20imgUtils=E4=B8=ADdownloadCanvas=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/imgUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/core-frontend/src/utils/imgUtils.ts b/core/core-frontend/src/utils/imgUtils.ts index f824dda73a..07f56e94ec 100644 --- a/core/core-frontend/src/utils/imgUtils.ts +++ b/core/core-frontend/src/utils/imgUtils.ts @@ -88,6 +88,7 @@ export function downloadCanvas2(type, canvasDom, name, callBack?) { const a = document.createElement('a') a.setAttribute('download', name) a.href = dataUrl + document.body.appendChild(a) a.click() document.body.removeChild(a) } else { @@ -123,6 +124,7 @@ export function downloadCanvas(type, canvasDom, name, callBack?) { const a = document.createElement('a') a.setAttribute('download', name) a.href = dataUrl + document.body.appendChild(a) a.click() document.body.removeChild(a) } else {