2.21 修改用户登出接口地址
This commit is contained in:
@ -31,14 +31,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();
|
||||
|
Reference in New Issue
Block a user