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();
        }
      });
    },

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章