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-12 10:37:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1bd921954ce31e26066fab31b5ac1da5491f5634
1bd92195
1 parent
863b4af1
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
src/utils/axios.js
src/views/business/index.vue
src/utils/axios.js
View file @
1bd9219
...
...
@@ -39,7 +39,7 @@ axios.interceptors.response.use(
}
});
}
//
TEMP: 临时
拦截B端未登录情况
// 拦截B端未登录情况
if
(
response
.
data
.
msg
===
'老师请先登录!'
||
response
.
data
.
msg
===
'老师不存在!'
)
{
router
.
replace
({
path
:
'/business/login'
...
...
src/views/business/index.vue
View file @
1bd9219
...
...
@@ -76,7 +76,6 @@ const onClick = (item) => {
});
}
// TODO: 后端要给我个确切的判断,没有登录,中文太坑了
const kgInfo = ref({});
axios.get('/srv/?a=kg_info')
.then(res => {
...
...
Please
register
or
login
to post a comment