diff --git a/components/custom-tab-bar/index.js b/components/custom-tab-bar/index.js index 75a82ae..62d7be5 100644 --- a/components/custom-tab-bar/index.js +++ b/components/custom-tab-bar/index.js @@ -2,12 +2,10 @@ import {getStaffbasicinfo} from "../../utils/api"; const app = getApp() import {getOwnedRolesOfStaffId,editstaffinit} from '../../utils/statisticsApi.js' -import {getOwnedRolesOfStaffId,editstaffinit} from '../../utils/statisticsApi.js' Component({ data: { manageOrgNameList:[], - manageOrgNameList:[], selected: 0, color: "#999", selectedColor: "#3A80E7", diff --git a/utils/request.js b/utils/request.js index 026d5f5..f2fe1f1 100644 --- a/utils/request.js +++ b/utils/request.js @@ -8,6 +8,7 @@ const request = function (url, options) { wx.request({ url: `${global.BASEURL()}${url}`, method: options.method, + timeout: 120000, // 设置超时时间为 120 秒(120000 毫秒) data: options.method === 'GET' ? options.data : JSON.stringify(options.data), header: { 'Content-Type': 'application/json; charset=UTF-8',