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-17 10:55:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1f98ccec24a21a43d64233777539edfe70fb6a28
1f98ccec
1 parent
5b0391f7
fix 默认显示错误提示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/utils/axios.js
src/utils/axios.js
View file @
1f98cce
...
...
@@ -41,6 +41,8 @@ axios.interceptors.response.use(
}
});
}
// 默认显示
response
.
data
.
show
=
true
;
// 拦截B端未登录情况
if
(
response
.
data
.
msg
===
'老师请先登录!'
||
response
.
data
.
msg
===
'老师不存在!'
)
{
router
.
replace
({
...
...
Please
register
or
login
to post a comment