Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f7b29813
authored
Mar 31, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加请求超时时间
1 parent
6d8f8858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/api/config.js
src/api/config.js
View file @
f7b2981
...
...
@@ -5,7 +5,7 @@ import store from '../vuex/store'
import
{
checkStatus
,
showLoading
}
from
'./checkStatus'
;
const
instance
=
axios
.
create
({
// 创建axios实例,在这里可以设置请求的默认配置
timeout
:
30
*
60000
,
// 设置超时时间60s
timeout
:
6
*
60000
,
// 设置超时时间60s
retry
:
3
,
retryDelay
:
1000
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment