sunny 2 місяців тому
батько
коміт
2070dc7905
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      src/views/historicalVisit/historAllVisit.vue

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

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