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
10 回答7.3k 阅读
16 回答2.7k 阅读✓ 已解决
6 回答4k 阅读✓ 已解决
9 回答3.4k 阅读✓ 已解决
14 回答5.2k 阅读
6 回答3k 阅读✓ 已解决
10 回答2.3k 阅读✓ 已解决
两者是一样的