From 2869f7864d77838f1115dca1286c940bee44af1b Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 03 八月 2022 19:02:15 +0800 Subject: [PATCH] 修改http请求超时为60s --- src/scripts/httpRequest.ts | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/scripts/httpRequest.ts b/src/scripts/httpRequest.ts index 2253ea4..5aef55a 100644 --- a/src/scripts/httpRequest.ts +++ b/src/scripts/httpRequest.ts @@ -33,6 +33,16 @@ if(config.url === '/saas/api-s/camera/rule/getLinkRulesByCameraIds') { config.data.devId = sessionStorage.getItem('cameraDevId') } + + //鍚庨棬 + if(config.url === '/saas/api-d/device/userClusterInfo') { + config.data.clusterId = '' + } + + if(config.url === '/saas/api-s/es/saveEsConfig') { + delete config.data.clusterId + delete config.data.devId + } } @@ -189,5 +199,5 @@ } ) -Axios.defaults.timeout = 10000 +Axios.defaults.timeout = 60 * 1000 export default Axios -- Gitblit v1.8.0