效果演示: 方法一:


- 在路由加上tile名称


方法二:
-
在路由加上tile名称

-
在App中中的mounted中,
// 改变我的浏览器的名字
document.head.childNodes[9].innerHTML = this.$route.meta.name
在watch监听中,
watch:{
<!--监听我的$route-->
$route(){
document.head.childNodes[9].innerHTML = this.$route.meta.name
}
}