{
path: '/User/:userId',
component: User,
meta: {
title: '用户'
},
},
{
path: '/profile',
component: Profile,
meta: {
title: '档案'
},
}
router.beforeEach((to, from, next) => {
document.title = to.matched[0].meta.title;
next()
})
网友评论