فهرست منبع

历史拜访界面缓存优化

sunny 2 ماه پیش
والد
کامیت
983a5b66b0
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/views/historicalVisit/historAllVisit.vue

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

@@ -266,7 +266,7 @@ export default {
   activated() {
     let typeQuery = localStorage.getItem('typeQuery');
     if(this.latestUpdateTime!=null && typeQuery == 1){ 
-      this.getListTotalFn();
+        this.getListTotalFn();
     }else{
       setTimeout(() => {
         this.onSearch();
@@ -435,7 +435,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;