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}`)