Appearance
动态设置浏览器头部标题
router.afterEach((to, from, next) => {
if (to.meta.title) {
document.title = to.meta.title + " · xx平台";
} else {
document.title = "xx平台";
}
next()
})
router.afterEach((to, from, next) => {
if (to.meta.title) {
document.title = to.meta.title + " · xx平台";
} else {
document.title = "xx平台";
}
next()
})