fix: 增加 request 日志

develop
时启龙 2024-08-30 16:54:02 +08:00
parent b16f122e3a
commit 69dccbfd5b
1 changed files with 1 additions and 0 deletions

View File

@ -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) {