router.beforeEach((to, from, next) => {
const title = to.meta && to.meta.title
if (title) {
document.title = title
}
next()
})
router.beforeEach((to, from, next) => {
const title = to.meta && to.meta.title
if (title) {
document.title = title
}
next()
})
本文标题:vue 改变路由动态改变title
本文链接:https://www.haomeiwen.com/subject/qjxqfctx.html
网友评论