fix: 修复标题显示异常

This commit is contained in:
hooray
2022-11-27 23:37:03 +08:00
parent e24431c38a
commit 5c6494931b
+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 {