Skip to content

Commit b0fc3a9

Browse files
committed
修复:修改页签头标题不生效的bug;:star:
fix: the problem that modify page title not effective;
1 parent 37f66c8 commit b0fc3a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/layouts/tabs/TabsHead.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
this.$emit('contextmenu', pageKey, e)
9696
},
9797
pageName(page) {
98-
const custom = this.customTitles.find(item => item.path === page.fullPath)
98+
const pagePath = page.fullPath.split('?')[0]
99+
const custom = this.customTitles.find(item => item.path === pagePath)
99100
return (custom && custom.title) || page.title || this.$t(getI18nKey(page.keyPath))
100101
}
101102
}

0 commit comments

Comments
 (0)