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
cdace511
Commit
cdace511
authored
Jul 20, 2021
by
严俊东
Committed by
Gitee
Jul 20, 2021
Browse files
code=401时request方法没有返回Promise.reject 修复
parent
b616a2f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/src/utils/request.js
View file @
cdace511
...
@@ -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