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