diff --git a/src/utils/request.js b/src/utils/request.js index dda5ddf..0084515 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -95,6 +95,7 @@ axiosInstance.interceptors.response.use( config: { options }, headers: { token } } = data + if (data.status !== 200 || !responseData.success) console.log('请求失败 response:', data) if (token) setToken(token) if (!responseData.success) { switch (responseData.status) {