我在监听页面路由切换的时候,为什么有时路由path
会得到undefined
??
watch: {
$route(route) {
if(route.path === '/a/b') {
//.......
}
},
}
我在监听页面路由切换的时候,为什么有时路由path
会得到undefined
??
watch: {
$route(route) {
if(route.path === '/a/b') {
//.......
}
},
}
9 回答1.7k 阅读✓ 已解决
6 回答1k 阅读
3 回答1.4k 阅读✓ 已解决
4 回答991 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
3 回答897 阅读
3 回答1.3k 阅读✓ 已解决