vue修改当前路由query参数

    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.js,javascript,前端)