fix: 增加 request 日志
parent
b16f122e3a
commit
69dccbfd5b
|
@ -95,6 +95,7 @@ axiosInstance.interceptors.response.use(
|
||||||
config: { options },
|
config: { options },
|
||||||
headers: { token }
|
headers: { token }
|
||||||
} = data
|
} = data
|
||||||
|
if (data.status !== 200 || !responseData.success) console.log('请求失败 response:', data)
|
||||||
if (token) setToken(token)
|
if (token) setToken(token)
|
||||||
if (!responseData.success) {
|
if (!responseData.success) {
|
||||||
switch (responseData.status) {
|
switch (responseData.status) {
|
||||||
|
|
Loading…
Reference in New Issue