不知道为什么,求助。
created () { console.log(this.$route.query, '拿不到') }, beforeRouteEnter (to, form, next) { const { v = '1' } = to.query next(vm => { console.log(v, '有数据') }) }
页面地址发下
1.4m articles
1.4m replys
5 comments
57.0k users