vue页面与页面之间传值
1、通过路由传值
将index界面的this.tabs.active、this.choiceType.active2个值传到login界面
this.$router.push('/login?' + `tab=${this.tabs.active}&choiceType=${this.choiceType.active}`)
在login界面console.log()可以看到传过来的值