Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 addb8a3d
authored
Dec 31, 2021
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加超时时间
1 parent
c51461f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/http.js
src/utils/http.js
View file @
addb8a3
...
...
@@ -5,7 +5,7 @@ import store from '@/store'
import
{
checkStatus
,
showLoading
}
from
'./checkStatus'
const
instance
=
axios
.
create
({
// 创建axios实例,在这里可以设置请求的默认配置
timeout
:
3
*
60
*
1000
,
// 设置超时时间60s
timeout
:
10
*
60
*
1000
,
// 设置超时时间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