소스 검색

Merge branch 'feature_20250904_历史拜访界面缓存优化' into release

zhujindu 2 달 전
부모
커밋
5b5baca982
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/historicalVisit/historAllVisit.vue

+ 4 - 2
src/views/historicalVisit/historAllVisit.vue

@@ -271,7 +271,7 @@ export default {
   activated() {
     let typeQuery = localStorage.getItem('typeQuery');
     if(this.latestUpdateTime!=null && typeQuery == 1){ 
-      this.getListTotalFn();
+        this.getListTotalFn();
     }else{
       setTimeout(() => {
         this.onSearch();
@@ -440,7 +440,9 @@ export default {
         loading1.clear();
         if (res.code == 200) {
           this.loading = false;
-          this.latestUpdateTime = res.dataTime;
+          if(this.pageNum == 1){
+            this.latestUpdateTime = res.dataTime;
+          }
           this.list = this.list.concat(res.data);
           if (this.list.length >= res.total) {
             this.finished = true;