Browse Source

Merge branch 'feature_20250904_历史拜访界面缓存优化' into uat(dev)

zhujindu 2 months ago
parent
commit
56bf75324c
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/views/historicalVisit/historAllVisit.vue

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

@@ -272,6 +272,10 @@ export default {
     let typeQuery = localStorage.getItem('typeQuery');
     let typeQuery = localStorage.getItem('typeQuery');
     if(this.latestUpdateTime!=null && typeQuery == 1){ 
     if(this.latestUpdateTime!=null && typeQuery == 1){ 
       this.getListTotalFn();
       this.getListTotalFn();
+    }else{
+      setTimeout(() => {
+        this.onSearch();
+      }, 1000);
     }
     }
   },
   },
   deactivated(){
   deactivated(){
@@ -311,9 +315,6 @@ export default {
         this.getDeptInfo('user');
         this.getDeptInfo('user');
       }, 2000);
       }, 2000);
     }
     }
-    setTimeout(() => {
-      this.onSearch();
-    }, 1000);
   },
   },
   methods: {
   methods: {
     getListTotalFn(){
     getListTotalFn(){