Ver código fonte

有恢复按钮的模块翻页缓存去掉2057

zhouna 6 anos atrás
pai
commit
de698c3a15

+ 3 - 4
src/components/icss/DisclaimerInformation.vue

@@ -77,7 +77,6 @@
 
 <script>
   import api from '@api/icss.js';
-  import utils from '@api/utils.js';
 
   export default {
     name: 'DisclaimerInformation',
@@ -169,11 +168,11 @@
       },
       currentChange(next) {
         this.currentPage = next;
-        if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+        /*if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
           this.list = this.cacheData[next];
-        } else {
+        } else {*/
           this.getDataList();
-        }
+        //}
       },
       warning(msg,type){
         this.$message({

+ 4 - 3
src/components/icss/MedicalRelation.vue

@@ -119,6 +119,7 @@
 
 <script>
   import api from '@api/icss.js';
+
   export default {
     name: 'MedicalRelation',
     data: function () {
@@ -235,11 +236,11 @@
       },
       currentChange(next) {
         this.currentPage = next;
-        if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+        /*if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
           this.list = this.cacheData[next];
-        } else {
+        } else {*/
           this.getDataList();
-        }
+        //}
       },
       warning(msg,type){
         this.$message({

+ 3 - 3
src/components/icss/MedicinePrompt.vue

@@ -174,11 +174,11 @@
       },
       currentChange(next) {
         this.currentPage = next;
-        if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+        /*if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
           this.list = this.cacheData[next];
-        } else {
+        } else {*/
           this.getDataList();
-        }
+        //}
       },
       warning(msg,type){
         this.$message({