diff --git a/.gitignore b/.gitignore index 78a752d8..de06ffba 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ yarn-error.log* tests/**/coverage/ tests/e2e/reports selenium-debug.log +UDI_WMS_NEW/ # Editor directories and files .idea diff --git a/src/utils/request.js b/src/utils/request.js index a36d2ec3..4db06fb3 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -85,7 +85,7 @@ service.interceptors.response.use(res => { if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') { return res.data } - if (code === 401) { + if (code === 2) { if (!isRelogin.show) { isRelogin.show = true; MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {