From f0620348ca776ae0496343b8d9de7729e2909b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:18:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=AF=BC=E5=85=A5=E5=90=8D=E7=A7=B0=E4=B8=8E?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=90=8D=E7=A7=B0=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#17590)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/imgUtils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/utils/imgUtils.ts b/core/core-frontend/src/utils/imgUtils.ts index 6ca659d48a..e0a716a334 100644 --- a/core/core-frontend/src/utils/imgUtils.ts +++ b/core/core-frontend/src/utils/imgUtils.ts @@ -44,9 +44,10 @@ export function download2AppTemplate(downloadType, canvasDom, name, attachParams canvasViewDataTemplate[viewId].data = canvasViewDataInfo.value[viewId] }) const snapshot = canvas.toDataURL('image/jpeg', 0.1) // 0.1是图片质量 + const templateName = attachParams?.appName ? attachParams.appName : name if (snapshot !== '') { const templateInfo = { - name: name, + name: templateName, templateType: 'self', snapshot: snapshot, dvType: dvInfo.value.type, @@ -62,7 +63,7 @@ export function download2AppTemplate(downloadType, canvasDom, name, attachParams if (downloadType === 'template') { FileSaver.saveAs(blob, name + '-TEMPLATE.DET2') } else if (downloadType === 'app') { - FileSaver.saveAs(blob, name + '-APP.DET2APP') + FileSaver.saveAs(blob, templateName + '-APP.DET2APP') } } if (callBack) {