From f0af81b92084628b2d1ddf14edfbd0a5daeefa21 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Fri, 18 Jul 2025 10:34:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=96=B7=E6=B6=82=E5=8C=BA=E5=9F=9F:=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4tab=E5=90=8E=E5=8C=BA=E5=9F=9F=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/martixCraft/Edit/index.vue | 3 +++ src/components/spray/sprayParams/index.vue | 2 +- src/components/spray/trayGraph/index.vue | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/martixCraft/Edit/index.vue b/src/components/martixCraft/Edit/index.vue index 4ae604b..ccdf29a 100644 --- a/src/components/martixCraft/Edit/index.vue +++ b/src/components/martixCraft/Edit/index.vue @@ -128,6 +128,7 @@ const cancel = () => { const sprayRefs = ref([]) const activeTab = ref(0) +const swiperKey = ref(1) const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' | 'add') => { if (action === 'add') { if (form.value.times.length >= 10) { @@ -153,6 +154,7 @@ const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' | } form.value.times.splice(activeTab.value, 1) } + swiperKey.value++ // 异步任务调用 setTimeout(() => { @@ -220,6 +222,7 @@ const touchendHandle = () => { { swiperInstance?.slideTo(activeTab.value) diff --git a/src/components/spray/trayGraph/index.vue b/src/components/spray/trayGraph/index.vue index eed3b00..5ea1b95 100644 --- a/src/components/spray/trayGraph/index.vue +++ b/src/components/spray/trayGraph/index.vue @@ -178,7 +178,6 @@ const addGuideLine = () => { const getSelection = () => { if (rect.value) { const pos = rect.value.position() - console.log(newWidth, newHeight) return { x1: formatNum(pos.x / zoom), y1: formatNum(pos.y / zoom), @@ -192,7 +191,6 @@ const getSelection = () => { // 新增方法:更新矩形选区位置 const updateSelection = (x: number, y: number, width: number, height: number) => { if (rect.value) { - console.log(x, y, width, height) rect.value.position({ x, y }) rect.value.width(width) rect.value.height(height) @@ -229,7 +227,6 @@ const updateLine = (point: { x: number, y: number }, index: number, stroke: stri } nextTick(() => { const currentLine = lines.value[index] - console.log(currentLine, currentLine.points()) currentLine.points([...currentLine.points(), point.x, point.y]) currentLine.getLayer()!.batchDraw() // 批量重绘提升性能 })