更改路由传递的参数:
const query = JSON.parse(JSON.stringify(this.$route.query)) // 获取路由参数信息 query.id = Name //改变参数 this.$router.push({path:this.$route.path,query}) //更新路由
更改路由传递的参数:
const query = JSON.parse(JSON.stringify(this.$route.query)) // 获取路由参数信息 query.id = Name //改变参数 this.$router.push({path:this.$route.path,query}) //更新路由