vue改变url参数值

let query = this.$router.history.current.query let path = this.$router.history.current.path let newQuery = JSON.parse(JSON.stringify(query)); newQuery.tab = this.active; this.$router.push({ path, query: newQuery });

    推荐阅读