From f83aeadb77d87b29be680f7e37b729bbd72e1716 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 08 五月 2025 10:38:08 +0800 Subject: [PATCH] 画板组件优化 --- src/components/graffiti/index.vue | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/components/graffiti/index.vue b/src/components/graffiti/index.vue index 902940e..c332154 100644 --- a/src/components/graffiti/index.vue +++ b/src/components/graffiti/index.vue @@ -150,7 +150,7 @@ imgData.setAttribute("crossOrigin", ""); } imgData.onload = () => { - this.context.drawImage(imgData, 0, 0, this.imgWidth, this.imgHeight); + this.context.drawImage(imgData, 0, 0, Math.min(window.innerWidth,this.imgWidth),this.imgHeight); }; }; resetCanvas(); @@ -336,6 +336,7 @@ display: flex; justify-content: space-around; align-items: center; + flex-wrap: wrap; height: 88px; } -- Gitblit v1.9.1