Showing
2 changed files
with
1 additions
and
2 deletions
| ... | @@ -39,7 +39,7 @@ axios.interceptors.response.use( | ... | @@ -39,7 +39,7 @@ axios.interceptors.response.use( |
| 39 | } | 39 | } |
| 40 | }); | 40 | }); |
| 41 | } | 41 | } |
| 42 | - // TEMP: 临时拦截B端未登录情况 | 42 | + // 拦截B端未登录情况 |
| 43 | if (response.data.msg === '老师请先登录!' || response.data.msg === '老师不存在!') { | 43 | if (response.data.msg === '老师请先登录!' || response.data.msg === '老师不存在!') { |
| 44 | router.replace({ | 44 | router.replace({ |
| 45 | path: '/business/login' | 45 | path: '/business/login' | ... | ... |
| ... | @@ -76,7 +76,6 @@ const onClick = (item) => { | ... | @@ -76,7 +76,6 @@ const onClick = (item) => { |
| 76 | }); | 76 | }); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | -// TODO: 后端要给我个确切的判断,没有登录,中文太坑了 | ||
| 80 | const kgInfo = ref({}); | 79 | const kgInfo = ref({}); |
| 81 | axios.get('/srv/?a=kg_info') | 80 | axios.get('/srv/?a=kg_info') |
| 82 | .then(res => { | 81 | .then(res => { | ... | ... |
-
Please register or login to post a comment