chore: 变更 status 获取方式

This commit is contained in:
tnt group 2023-05-22 08:15:06 +08:00
parent c8e0b6c474
commit bdfad88357

View File

@ -80,7 +80,7 @@ axiosInstance.interceptors.response.use(
return Promise.resolve(res.data)
},
(err: AxiosError) => {
const { status } = err
const status = err.response?.status
switch (status) {
case 401:
routerTurnByName(PageEnum.BASE_LOGIN_NAME)