handleCurrentNode(node, index) {
this.currentNode = node;
this.$emit("triggerFunc", node);
this.changePage(index);
},
changePage(num) {
this.$route.query.stage = num;
const query = JSON.parse(JSON.stringify(this.$route.query));
if (query.IsBinding) {
query.IsBinding = false;
} else {
query.IsBinding = true;
}
this.$router.push({ path: this.$route.path, query });
},
vue修改当前路由query参数
最新推荐文章于 2024-04-08 16:10:34 发布