From 2ca7f1e9d3ff3c54ec5d10688a33c628ec296f8b Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期一, 12 五月 2025 10:22:42 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- 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