| | |
| | | } else if([2012,2013,2014,2015].includes(res.data.code)){ |
| | | if (isDev){ |
| | | alert("JWT失效,即将跳转至登录页..") |
| | | window.location = getApsPage()+'/login' |
| | | window.location ='http://'+ getApsPage()+'/login' |
| | | }else { |
| | | // JWT鉴权失效 跳转到登录页 |
| | | window.location = getApsPage()+'/login' |
| | | window.location ='http://'+ getApsPage()+'/login' |
| | | } |
| | | // Message({ |
| | | // message: res.data.msg, |
| | |
| | | return Promise.reject(res.data) |
| | | }else if([2036].includes(res.data.code)){ |
| | | if (isDev){ |
| | | window.location = getApsPage()+'/commonWeb?resetPwd=true' |
| | | window.location ='http://'+ getApsPage()+'/commonWeb?resetPwd=true' |
| | | }else { |
| | | // JWT鉴权失效 跳转到登录页 |
| | | window.location = getApsPage()+'/commonWeb?resetPwd=true' |
| | | window.location ='http://'+ getApsPage()+'/commonWeb?resetPwd=true' |
| | | } |
| | | return Promise.reject(res.data) |
| | | |
| | |
| | | if(error.response.status === 401){ |
| | | if (isDev){ |
| | | alert("JWT失效,即将跳转至登录页..") |
| | | window.location = getApsPage()+'/login' |
| | | window.location ='http://'+ getApsPage()+'/login' |
| | | }else { |
| | | // JWT鉴权失效 跳转到登录页 |
| | | window.location = getApsPage()+'/login' |
| | | window.location ='http://'+ getApsPage()+'/login' |
| | | } |
| | | } |
| | | let { message } = error |