let query = this.$router.history.current.query;
      let path = this.$router.history.current.path;
      //对象的拷贝
      let newQuery = JSON.parse(JSON.stringify(query));
      newQuery.pid = pid;
      this.$router.push({ path, query: newQuery });

 

Logo

前往低代码交流专区

更多推荐