watch:{
$route(to,from){
this.componentName = to.name
}
},
用watch监控路由变化
最新推荐文章于 2024-04-12 19:22:19 发布
watch:{
$route(to,from){
this.componentName = to.name
}
},