Merge branch '20230210-为登录至招标采购中心的用户,增加退出功能。' into 'release_20230224'

2.24 退出登录后,token应该立即失效,防止业务接口被恶意调用

See merge request eshop/fe_service_ebtp_frontend!173
This commit is contained in:
jl-zhoujl2
2023-02-24 07:11:07 +00:00
4 changed files with 12 additions and 12 deletions

View File

@ -19,7 +19,7 @@ const RequestTimeoutPage: React.FC<{}> = () => {
const { Text } = Typography;
const [time, setTime] = useState<number>(10);
const roleData = getSessionRoleData();
const token = sessionStorage.getItem('Authorization');
// const token = sessionStorage.getItem('Authorization');
useEffect(() => {
let timeInteval: any
@ -49,7 +49,7 @@ const RequestTimeoutPage: React.FC<{}> = () => {
}
}
const redirectLogin = () => {
logoutTokenApi({ mall3_token: token }).then(res => {
logoutTokenApi().then(res => {
history.replace({
pathname: '/userformal/login',
})