Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7b918a52
authored
2022-08-31 16:42:54 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:请求加载
1 parent
498da4b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/utils/request.js
src/utils/request.js
View file @
7b918a5
...
...
@@ -24,7 +24,7 @@ service.interceptors.request.use(
return
config
},
error
=>
{
if
(
config
.
showLoading
)
{
if
(
error
.
showLoading
)
{
endLoadingSubCount
(
config
.
loadingTarget
);
}
Message
.
error
(
'请求超时!'
);
...
...
@@ -57,7 +57,7 @@ service.interceptors.response.use(
type
:
'error'
,
duration
:
5
*
1000
})
if
(
response
.
config
.
showLoading
)
{
if
(
error
.
config
.
showLoading
)
{
endLoadingSubCount
();
}
return
Promise
.
reject
(
error
);
...
...
Please
register
or
sign in
to post a comment