摘要: beforeRouteEnter不能直接this.$store,可采用下面的方式 beforeRouteEnter(to, from, next) { const store = from.matched[0].instances.default.$store next() } [转自]:https 阅读全文
posted @ 2021-01-14 19:29 平小宅 阅读(1658) 评论(0) 推荐(0) 编辑