diff --git a/src/utils/http.ts b/src/utils/http.ts index 9ff9b8d..6fc91c1 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -72,7 +72,7 @@ http.interceptors.response.use( } // Token 失效 - if (code === 401 && response.config.url !== '/auth/user/info') { + if (code === '401' && response.config.url !== '/auth/user/info') { modalErrorWrapper({ title: '提示', content: msg,