this.\$router.currentRoute 和 this.\$route 区别
已解决
悬赏分:0
- 解决时间 2021-12-03 07:00
点赞 0反对 0举报 0
收藏 0
分享 2
回答3
最佳
-
两者是一样的
console.log(this.$router.currentRoute === this.$route) // true
支持 0 反对 0 举报2021-12-02 10:46
-
没区别
console.log(this.$router.currentRoute === this.$route) // true支持 0 反对 0 举报2021-12-02 12:18