修复登录页标题未正常显示

This commit is contained in:
Hooray 2023-02-23 22:30:52 +08:00
parent c253ef6fb4
commit fb129e83a2
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ watch([
else {
document.title = import.meta.env.VITE_APP_TITLE
}
}, {
immediate: true,
})
onMounted(() => {

View File

@ -120,7 +120,7 @@ router.afterEach((to, from) => {
settingsStore.settings.app.enableProgress && (isLoading.value = false)
// 设置页面 title
if (settingsStore.settings.app.routeBaseOn !== 'filesystem') {
settingsStore.setTitle(to.meta.breadcrumbNeste?.at(-1)?.title)
settingsStore.setTitle(to.meta.breadcrumbNeste?.at(-1)?.title ?? to.meta.title)
}
else {
settingsStore.setTitle(to.meta.title)