From f11db1284e72360e2d0a950ea7483d3bb1f463a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Tue, 25 Mar 2025 09:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9B=E7=8E=87=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/custom-tab-bar/index.js | 2 -- utils/request.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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',