mpvue跳转同个路由页面的问题


 onLoad(options) {
      this.page_query = options;
    },

    onShow() {
      const _this = this;
      wx.pageScrollTo({
        scrollTop: 0,
        success: function() {
          let pages = getCurrentPages(); //页面栈
          let currPage = pages[pages.length - 1]; //当前页面
          _this.page_query = currPage.options;
          _this.scrollData.mustFixed = false;
          _this.initAllData();
        }
      });
    },

你可能感兴趣的:(mpvue,小程序)