Commit da6e51ec authored by chenqikuai's avatar chenqikuai

fix

parent 352d769a
...@@ -15,7 +15,7 @@ baseAxios.interceptors.response.use( ...@@ -15,7 +15,7 @@ baseAxios.interceptors.response.use(
(value: AxiosResponse<iRet>) => { (value: AxiosResponse<iRet>) => {
const ret = value.data const ret = value.data
if (ret.code !== undefined && ret.code !== 200) { if (ret.code !== undefined && ret.code !== 200) {
if (ret.code === 504) { if ([504, 503].includes(ret.code)) {
window.localStorage.clear() window.localStorage.clear()
router.push('/login') router.push('/login')
// deleteUserMsg(); // deleteUserMsg();
......
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