mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
fix: 重复创建tab
This commit is contained in:
@@ -7,7 +7,7 @@ export function createTabGuard(router: Router) {
|
||||
router.afterEach((to) => {
|
||||
if (EXCLUDE_TAB.includes(to.path)) return
|
||||
const tabStore = useTabStore()
|
||||
const { name, fullPath: path } = to
|
||||
const { name, path } = to
|
||||
const title = String(to.meta?.title)
|
||||
tabStore.addTab({
|
||||
name: String(name),
|
||||
|
||||
Reference in New Issue
Block a user