Skip to content

Commit

Permalink
fix: 修复标题显示异常
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Nov 27, 2022
1 parent e24431c commit 5c64949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ watch([
() => settingsStore.title,
], () => {
if (settingsStore.app.enableDynamicTitle && settingsStore.title) {
const title = settingsStore.title
const title = typeof settingsStore.title === 'function' ? settingsStore.title() : settingsStore.title
document.title = `${title} - ${import.meta.env.VITE_APP_TITLE}`
}
else {
Expand Down

0 comments on commit 5c64949

Please sign in to comment.