fix: 增加 request 日志
parent
b16f122e3a
commit
69dccbfd5b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue