From 253b3f50df303f24fdf880797619432f8b74db21 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期二, 19 十一月 2024 14:41:43 +0800
Subject: [PATCH] 民航心理学全本

---
 src/components/paint/index.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/components/paint/index.vue b/src/components/paint/index.vue
index eadb1e3..180ddcc 100644
--- a/src/components/paint/index.vue
+++ b/src/components/paint/index.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="paint">
-    <canvas id="canvas" width="400" :height="canvasHeight"></canvas>
+    <canvas id="canvas" :width="canvasWidth" :height="canvasHeight"></canvas>
     <!-- 鎿嶄綔鎸夐挳 -->
     <ul class="paint-btn">
       <li class="paint-btn-box">
@@ -55,6 +55,7 @@
 export default {
   data() {
     return {
+      canvasWidth:window.innerWidth > 450 ? 400 : window.innerWidth - 30,
       backgroundImgUrl: "", // 鑳屾櫙
       isDraw: true, // 缁樼敾銆佹閫夋ā寮�
       brush: "Pencil", // 鐢荤瑪绫诲瀷

--
Gitblit v1.9.1