mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-08 11:26:24 +08:00
change page title
This commit is contained in:
parent
42b42a5e1c
commit
48dc9c66d7
@ -12,7 +12,9 @@ const whiteList = ['/login', '/auth-redirect'] // no redirect whitelist
|
||||
router.beforeEach(async(to, from, next) => {
|
||||
// start progress bar
|
||||
NProgress.start()
|
||||
|
||||
if (to.meta.title) {
|
||||
document.title = to.meta.title
|
||||
}
|
||||
// determine whether the user has logged in
|
||||
const hasToken = getToken()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user