$route监听路由变化
export default {
watch:{
$route(){
alert(1)
}
}
}
You can change the world with your heart,even a lot of changes sometimes unless you won't geiv up....
export default {
watch:{
$route(){
alert(1)
}
}
}