problem description
Route jump is not overheard
the environmental background of the problems and what methods you have tried
beforeRouteEnter (to, from, next) {
console.log("ooo")
},
"$route" :{ //
handler:function(to,from){
console.log(to,from)
// if(to.path == "/"){
// /**
// * $storeStore
// * dispatch actions
// */
// this.$store.dispatch("showTabBar");
// }else{
// this.$store.dispatch("hideTabBar");
// }
},
deep:true
},
"$route"(to, from) {
console.log(to,from)
console.log("ooo")
},
related codes
/ / Please paste the code text below (do not replace the code with pictures)