diff --git a/front/src/utils/request.js b/front/src/utils/request.js index 9ff3db0b..4721f5c7 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -119,12 +119,6 @@ instance.interceptors.response.use( if (_old_href === _new_href) { location.reload() } - - // location.reload() - // 西海岸-不重新加载 - // if(!whoShow.itShowXiHaiAn) { - // location.reload() - // } return response } if (response.headers.redirect === '/#/login') { @@ -150,7 +144,7 @@ instance.interceptors.response.use( location.reload() }, 1000) } - handleCode(code, message, response.headers) + handleCode(code, message || response.data.msg, response.headers) if (loadingInstance) loadingInstance.close() // const { data, config } = response // const { code, msg } = data