From 1397624c67254af44c9e1f24862ffcd9167f4de0 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 18 May 2026 14:58:23 +0800 Subject: [PATCH] no message --- components/myMain.vue | 5 ++++- root/bind/applyForm.vue | 36 ++++++++++++++++++++---------------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/components/myMain.vue b/components/myMain.vue index 6874a21..34fbd20 100644 --- a/components/myMain.vue +++ b/components/myMain.vue @@ -95,7 +95,7 @@ - @@ -359,6 +359,9 @@ success(res) { canvas.width = res.width; canvas.height = res.height + 250; + // 设置Canvas的CSS样式尺寸与逻辑尺寸一致,避免拉伸变形 + canvas.style.width = res.width + 'px'; + canvas.style.height = (res.height + 250) + 'px'; mycenter = canvas.width; myheight = canvas.height; const img = canvas.createImage(); diff --git a/root/bind/applyForm.vue b/root/bind/applyForm.vue index d7bb532..face299 100644 --- a/root/bind/applyForm.vue +++ b/root/bind/applyForm.vue @@ -34,17 +34,21 @@