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