From 2249bf614fcac4b5034242c1f86384a2c20df5c2 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Thu, 20 Nov 2025 11:12:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtools=E9=87=8C=E9=9D=A2?=
=?UTF-8?q?=E7=9A=84=E8=B7=AF=E7=94=B1=E8=B7=B3=E8=BD=AC=E4=BC=9A=E5=87=BA?=
=?UTF-8?q?=E7=8E=B0=E4=B8=A4=E4=B8=AAtools=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/component/toolsPage/index.vue | 14 ++++++++++----
src/views/HomeMain.vue | 10 +++++++---
2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/component/toolsPage/index.vue b/src/component/toolsPage/index.vue
index d1322648..086c74dd 100644
--- a/src/component/toolsPage/index.vue
+++ b/src/component/toolsPage/index.vue
@@ -6,17 +6,23 @@
class="toProduct"
:isState="openType =='toProduct'"
v-if="openType == 'toProduct' || currentProjectPath.includes('toProduct')"
+ v-show="openType == 'toProduct'"
>
-
-
-
-
+
+
+
+
diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue
index 0cda79c7..5ccf1380 100644
--- a/src/views/HomeMain.vue
+++ b/src/views/HomeMain.vue
@@ -779,9 +779,13 @@ export default defineComponent({
}).observe(imgParent)
}
const setRouter = (item, childItem) => {
- let itemRouter = item.router
- if (childItem.router) itemRouter = itemRouter + '?' + childItem.router
- router.push(itemRouter)
+ if(store.state.Workspace.projectPath.includes(childItem.value)){
+ router.push(store.state.Workspace.projectPath)
+ }else{
+ let itemRouter = item.router
+ if (childItem.router) itemRouter = itemRouter + '?' + childItem.router
+ router.push(itemRouter)
+ }
}
const setHistory = (item, childItem) => {
// router.push(`/home/tools?tools=toProduct&id=${childItem.id}`)