fix: Document title

This commit is contained in:
lejianwen
2025-02-12 21:08:33 +08:00
parent 8617959d15
commit aeafcdde60
3 changed files with 10 additions and 5 deletions
+1
View File
@@ -13,6 +13,7 @@ NProgress.configure({ showSpinner: false }) // NProgress Configuration
const whiteList = ['/login', '/register']
const routeStore = useRouteStore(pinia)
const appStore = useAppStore(pinia)
appStore.getAdminConfig()
router.beforeEach(async (to, from, next) => {
document.title = T(to.meta?.title) + ' - ' + appStore.setting.title