this.\$router.currentRoute 和 this.\$route 区别
两者是一样的
console.log(this.$router.currentRoute === this.$route) // true
没区别。
this.$route === this.$router.currentRoute //true
没区别console.log(this.$router.currentRoute === this.$route) // true
9 回答10k 阅读
3 回答11.4k 阅读✓ 已解决
4 回答8.8k 阅读✓ 已解决
7 回答10.5k 阅读
5 回答8.2k 阅读
3 回答7k 阅读✓ 已解决
2 回答11.3k 阅读✓ 已解决
两者是一样的