From d91a55550c4c2f30b122270c1940c307152fcbab Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 28 Dec 2023 13:25:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=87=AA=E9=80=82=E5=BA=94=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E6=89=8B=E6=9C=BA=E7=AB=AF=E6=9F=A5=E7=9C=8B=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=EF=BC=8C=E8=A7=86=E5=9B=BE=E5=AD=97=E5=8F=B7?= =?UTF-8?q?=E7=89=B9=E5=88=AB=E5=A4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/editor/Preview.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/components/canvas/components/editor/Preview.vue b/core/frontend/src/components/canvas/components/editor/Preview.vue index d1ee59627a..bd134dbff2 100644 --- a/core/frontend/src/components/canvas/components/editor/Preview.vue +++ b/core/frontend/src/components/canvas/components/editor/Preview.vue @@ -708,8 +708,8 @@ export default { } if (this.isMainCanvas()) { this.$store.commit('setPreviewCanvasScale', { - scaleWidth: this.canvasStyleData.autoSizeAdaptor ? (this.scaleWidth / 100) : 1, - scaleHeight: this.canvasStyleData.autoSizeAdaptor ? (this.scaleHeight / 100) : 1 + scaleWidth: (this.canvasStyleData.autoSizeAdaptor || this.terminal === 'mobile') ? (this.scaleWidth / 100) : 1, + scaleHeight: (this.canvasStyleData.autoSizeAdaptor || this.terminal === 'mobile') ? (this.scaleHeight / 100) : 1 }) } this.handleScaleChange()