From 85da14ad4377e081a744934c3ded049808427f59 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 06 十一月 2024 17:12:24 +0800
Subject: [PATCH] 绘画插件修改

---
 src/components/paint/index.vue                  |    8 +-------
 src/books/artAndDrama/view/components/index.vue |    2 +-
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/books/artAndDrama/view/components/index.vue b/src/books/artAndDrama/view/components/index.vue
index a2b876d..6aed245 100644
--- a/src/books/artAndDrama/view/components/index.vue
+++ b/src/books/artAndDrama/view/components/index.vue
@@ -186,7 +186,7 @@
 
     // 娴嬭瘯椤甸潰璺宠浆
     //  setTimeout(() => {
-    //  this.gotoPage(5,3);
+    //  this.gotoPage(5,32);
     //   setTimeout(() => {
     //     this.renderSign("Highlight", {
     //       id: "2ACA9359",
diff --git a/src/components/paint/index.vue b/src/components/paint/index.vue
index 40386fc..180ddcc 100644
--- a/src/components/paint/index.vue
+++ b/src/components/paint/index.vue
@@ -55,7 +55,7 @@
 export default {
   data() {
     return {
-      canvasWidth:400,
+      canvasWidth:window.innerWidth > 450 ? 400 : window.innerWidth - 30,
       backgroundImgUrl: "", // 鑳屾櫙
       isDraw: true, // 缁樼敾銆佹閫夋ā寮�
       brush: "Pencil", // 鐢荤瑪绫诲瀷
@@ -127,15 +127,9 @@
     },
   },
   mounted() {
-    this.handleCanvasWidth()
     this.init();
   },
   methods: {
-    handleCanvasWidth() {
-      if(window.innerWidth < 450) {
-        this.canvasWidth = window.innerWidth - 30
-      }
-    },
     // 鍒濆鍖栫敾甯�
     init() {
       this.canvas = new fabric.Canvas(

--
Gitblit v1.9.1