瀏覽代碼

防止接口被截流

xiaohaizhao 1 年之前
父節點
當前提交
ccc7f9c91c
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      pages/tabbar/home/index.js

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

@@ -16,7 +16,6 @@ Page({
         this.refreshData() //更新权限等信息
         getApp().globalData.http.refreshData = this.refreshData.bind(this);
         vIndate();
-
     },
     /* 更新站点信息 */
     refreshData() {
@@ -66,6 +65,7 @@ Page({
                     }
                     if (authList[s.name].options.some(s => s == "read")) {
                         if (s.name == "worderclue") {
+                            console.log(s.name)
                             //更新销售线索徽标数据
                             funs.getCount = () => {
                                 const index = this.data.gridList.findIndex(v => v.label == '销售线索');
@@ -75,7 +75,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 +98,8 @@ Page({
                                     "content": {
                                         "nocache": true,
                                         "pageNumber": 1,
-                                        "pageSize": 3
+                                        "pageSize": 3,
+                                        content: Date.now()
                                     }
                                 }, false).then(res => {
                                     if (res.msg != '成功') return;