- vue 动态获取当前route路由信息
watch: {
$route: {
handler: function(route) {
console.log(route)
},
immediate: true
}
},
watch: {
$route: {
handler: function(route) {
console.log(route)
},
immediate: true
}
},