Commit 0a468672 authored by xinzhedeai's avatar xinzhedeai

fix:登录超时跳转问题处理

parent 77c9276e
...@@ -49,7 +49,8 @@ axios.interceptors.request.use((req) => { ...@@ -49,7 +49,8 @@ axios.interceptors.request.use((req) => {
axios.interceptors.response.use((res) => { axios.interceptors.response.use((res) => {
console.log('------------------------- res', res) console.log('------------------------- res', res)
if (res.status === 401) { if (res.status === 401) {
window.location.href = '/login' location.href = 'http://yj.hylgzl.com/login'; // 山西华远大屏
// window.location.href = '/login'
}; };
return res; return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment