获取参数
this.$route.params
this.$route.query
监听路由
watch: {
$route: {
handler() {
console.log("this.$route.params new" ,this.$route.params)
},
deep: true,
}
},
this.$route.params
this.$route.query
watch: {
$route: {
handler() {
console.log("this.$route.params new" ,this.$route.params)
},
deep: true,
}
},