Commit b5325f82 authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

chore: 更新网页标题

See merge request !10
parents 81595922 8de3cea8
VITE_APP_ENV = 'DEV'
VITE_APP_NAME = 'DIGITAL_PERSON_FE'
VITE_APP_NAME = '萃想智能雲創'
VITE_APP_THEME_COLOR = '#2468f2'
VITE_PORT = 8848
VITE_PUBLIC_PATH = /fe
......
VITE_APP_ENV = 'PROD'
VITE_APP_NAME = 'DIGITAL_PERSON_FE'
VITE_APP_NAME = '萃想智能雲創'
VITE_APP_THEME_COLOR = '#2468f2'
VITE_PORT = 8848
VITE_PUBLIC_PATH = /fe
......
......@@ -29,14 +29,8 @@ export function createRouterGuards(router: Router) {
next()
})
router.afterEach((to) => {
if (to.meta.hiddenTitle) {
document.title = ''
} else if (to.meta.title) {
document.title = `${import.meta.env.VITE_APP_NAME}-${to.meta.title}`
} else {
document.title = import.meta.env.VITE_APP_NAME
}
router.afterEach(() => {
document.title = import.meta.env.VITE_APP_NAME
window.$loadingBar.finish()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment