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

@ -33,14 +33,14 @@ const GlobalHeaderRight: React.FC<{}> = (props) => {
}
//角色退出登录
const toLogout = () => {
let _data = {
mall3_token: sessionStorage.getItem('Authorization')
}
// let _data = {
// mall3_token: sessionStorage.getItem('Authorization')
// }
Modal.info({
title: '请确认是否退出?',
content: false,
onOk() {
getLogout({ ..._data }).then((res) => {
getLogout().then((res) => {
if (res?.success) {
if (data?.userType == "0") {//联通智慧门户
window.close();