소스 검색

防止接口被截流

xiaohaizhao 1 년 전
부모
커밋
f4b21828f8
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      pages/tabbar/home/index.js

+ 4 - 3
pages/tabbar/home/index.js

@@ -16,7 +16,6 @@ Page({
         this.refreshData() //更新权限等信息
         getApp().globalData.http.refreshData = this.refreshData.bind(this);
         vIndate();
-
     },
     /* 更新站点信息 */
     refreshData() {
@@ -75,7 +74,8 @@ Page({
                                     "method": "getCount",
                                     "content": {
                                         "nocache": true,
-                                        "status": "待跟进"
+                                        "status": "待跟进",
+                                        content: Date.now()
                                     }
                                 }, false).then(res => {
                                     if (res.data.count == 0) res.data.count = '';
@@ -97,7 +97,8 @@ Page({
                                     "content": {
                                         "nocache": true,
                                         "pageNumber": 1,
-                                        "pageSize": 3
+                                        "pageSize": 3,
+                                        content: Date.now()
                                     }
                                 }, false).then(res => {
                                     if (res.msg != '成功') return;