From 69dccbfd5b62b451055661a4774a265c4a5a8aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Fri, 30 Aug 2024 16:54:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20request=20=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 1 + 1 file changed, 1 insertion(+) 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) {