From e97bf2c8c21eb9b89384ac4ab59b3b1d0ba781d4 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期三, 23 七月 2025 14:52:00 +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