This commit is contained in:
Shikong 2023-07-14 15:04:23 +08:00
parent 35b88d86a1
commit feade2206f

View File

@ -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,
}) })
} }