소스 검색

update

master
Alex Cheung 1 년 전
부모
커밋
0e295a39a9
1개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. +9
    -5
      src/auth/index.js

+ 9
- 5
src/auth/index.js 파일 보기

@@ -183,12 +183,20 @@ export const SetupAxiosInterceptors = () => {
// alert("登入驗證已過期,請重新登入。")
// }
// }

if (error.response.status === 500) {
// await dispatch(handleLogoutFunction());
// await navigate('/login');
// await window.location.reload();
}
if (localStorage.getItem("expiredAlertShown")) {
await dispatch(handleLogoutFunction());
await navigate('/login');
await window.location.reload();
}

// console.log(error)

} else {
@@ -197,11 +205,7 @@ export const SetupAxiosInterceptors = () => {
await navigate('/login');
// await window.location.reload();
}
if (error.response.status === 500) {
// await dispatch(handleLogoutFunction());
// await navigate('/login');
// await window.location.reload();
}
}

}


불러오는 중...
취소
저장