修复标题显示异常

This commit is contained in:
hooray
2022-11-27 23:36:20 +08:00
parent c0a13151a4
commit 68116da966
+1 -1
View File
@@ -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 {