From 222ec77df1d5851f266a03639f1eee16271746fa Mon Sep 17 00:00:00 2001 From: stt Date: Wed, 22 Oct 2025 09:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E5=B8=83=E6=8B=96=E6=8B=BD=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=8F=90=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mt-preview-ypt/index.vue | 31 ++++++++++--------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/src/components/mt-preview-ypt/index.vue b/src/components/mt-preview-ypt/index.vue index 82389e4..ffb37e2 100644 --- a/src/components/mt-preview-ypt/index.vue +++ b/src/components/mt-preview-ypt/index.vue @@ -2,10 +2,15 @@
- 返回 + -
+
{ // 重置变换 const resetTransform = () => { // 定义重置变换的函数 - canvas_cfg.value.scale = useData.display - ? 0.96 - : document.documentElement.clientHeight / globalStore.canvasCfg.height + canvas_cfg.value.scale = useData.display ? 1 : document.documentElement.clientHeight / globalStore.canvasCfg.height canvas_cfg.value.pan = { x: 0, y: 0 } tempPan.x = 0 tempPan.y = 0 @@ -1073,10 +1066,10 @@ watch( () => useData.display, newVal => { if (newVal) { - canvas_cfg.value.scale = 0.96 + canvas_cfg.value.scale = 1 canvas_cfg.value.pan = { x: 0, - y: 50 + y: 0 } } else { canvas_cfg.value.scale = document.documentElement.clientHeight / globalStore.canvasCfg.height