chore: 变更 status 获取方式
This commit is contained in:
parent
c8e0b6c474
commit
bdfad88357
@ -80,7 +80,7 @@ axiosInstance.interceptors.response.use(
|
|||||||
return Promise.resolve(res.data)
|
return Promise.resolve(res.data)
|
||||||
},
|
},
|
||||||
(err: AxiosError) => {
|
(err: AxiosError) => {
|
||||||
const { status } = err
|
const status = err.response?.status
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 401:
|
case 401:
|
||||||
routerTurnByName(PageEnum.BASE_LOGIN_NAME)
|
routerTurnByName(PageEnum.BASE_LOGIN_NAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user