From ad97b7cc9440e0e0efd33867f4ff35fbd227b3b4 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 12 Jul 2024 17:04:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E3=80=81=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E7=BB=93=E6=9D=9F=E6=97=B6=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=8A=E6=97=B6=E5=8F=98=E6=9B=B4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/imgUtils.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core-frontend/src/utils/imgUtils.ts b/core/core-frontend/src/utils/imgUtils.ts index c9ef3f42d1..5088d7de07 100644 --- a/core/core-frontend/src/utils/imgUtils.ts +++ b/core/core-frontend/src/utils/imgUtils.ts @@ -67,6 +67,9 @@ export function download2AppTemplate(downloadType, canvasDom, name, callBack?) { }) }) } catch (e) { + if (callBack) { + callBack() + } console.error(e) } } @@ -96,6 +99,9 @@ export function downloadCanvas2(type, canvasDom, name, callBack?) { } }) .catch(error => { + if (callBack) { + callBack() + } console.error('oops, something went wrong!', error) }) }