修复tools里面的路由跳转会出现两个tools页面
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user