Browse Source

修改移动端全局搜索上啦加载数据问题

shenjj 7 years ago
parent
commit
cf94db8f70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/mobile/search/newkeycode.vue

+ 1 - 1
pages/mobile/search/newkeycode.vue

@@ -564,8 +564,8 @@
       },
       },
       // 切换顶部一级标题
       // 切换顶部一级标题
       setChangelistHander(str) {
       setChangelistHander(str) {
-        // if (document.querySelector('#main-search-wrapper')) document.querySelector('#main-search-wrapper').scrollTop = 0
         this.addShowPullup = false
         this.addShowPullup = false
+        if (document.querySelector('#main-search-wrapper')) document.querySelector('#main-search-wrapper').scrollTop = 0
         this.ChooseTop = str
         this.ChooseTop = str
         this.page = 1
         this.page = 1
         if (!this.keyword) return
         if (!this.keyword) return