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 {