onClick() {
this.$router.push({
1 //path: "/" + this.active,
2 //name: this.active,
3 name: "home",
params: {content: this.token
}
}
如代码所示,如果想用路由传递变量,那么只能使用第三种模式其他两种不能给params赋值而且也没有报错提示;如果想实现根据active的变量值来做路由跳转,请问有什么解决办法呢?