We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5bc0a7 commit cb5ecf9Copy full SHA for cb5ecf9
src/components/layout/Header.vue
@@ -25,8 +25,10 @@ const breadcrumbArr = computed(() => {
25
26
// 更新头部tabs
27
onBeforeRouteUpdate((to, _from, next) => {
28
- const tab = { title: to.meta.title, name: to.name } as App.Tab
29
- addTab(tab)
+ if (to.meta.title) {
+ const tab = { title: to.meta.title, name: to.name } as App.Tab
30
+ addTab(tab)
31
+ }
32
next()
33
})
34
0 commit comments