调整
This commit is contained in:
parent
35b88d86a1
commit
feade2206f
@ -14,10 +14,11 @@ if(globalTabsState.tabs.find(item => item.name === route.path) == null && route.
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(route.path === "/"){
|
if(route.path === "/"){
|
||||||
router.push("/home")
|
let r = router.resolve("/home")
|
||||||
|
router.push(r)
|
||||||
globalTabsState.addTab({
|
globalTabsState.addTab({
|
||||||
name: "/home",
|
name: "/home",
|
||||||
title: "首页",
|
title: r.meta.title,
|
||||||
closable: false,
|
closable: false,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user