Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-07 18:09:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ae2c37ed8a64dee8041d11d421af698802fa8a0
4ae2c37e
1 parent
8ddcb220
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/axios.js
src/utils/axios.js
View file @
4ae2c37
...
...
@@ -26,7 +26,7 @@ axios.interceptors.request.use(
// 响应拦截器
axios
.
interceptors
.
response
.
use
(
response
=>
{
let
userType
=
router
.
currentRoute
.
value
.
href
.
indexOf
(
'business'
)
>
0
?
'b'
:
'c'
;
let
userType
=
router
&&
router
.
currentRoute
.
value
.
href
.
indexOf
(
'business'
)
>
0
?
'b'
:
'c'
;
if
(
response
.
data
.
code
===
401
)
{
// 未授权跳转登录页
// 带着上一个页面的信息
...
...
Please
register
or
login
to post a comment