Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
46b43b1b
Commit
46b43b1b
authored
Jul 24, 2021
by
若依
Committed by
Gitee
Jul 24, 2021
Browse files
!269 code=401时request方法没有返回Promise.reject 修复
Merge pull request !269 from 严俊东/N/A
parents
8dbda471
cdace511
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/src/utils/request.js
View file @
46b43b1b
...
@@ -64,6 +64,7 @@ service.interceptors.response.use(res => {
...
@@ -64,6 +64,7 @@ service.interceptors.response.use(res => {
location
.
href
=
'
/index
'
;
location
.
href
=
'
/index
'
;
})
})
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
return
Promise
.
reject
(
'
error
'
)
}
else
if
(
code
===
500
)
{
}
else
if
(
code
===
500
)
{
Message
({
Message
({
message
:
msg
,
message
:
msg
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment