forked from Gitlink/forgeplus-react
竞赛详情页-退出-链接去掉state值
This commit is contained in:
parent
22674dadf2
commit
0fa7bdf5d0
|
@ -277,6 +277,7 @@ const User: FC<PageProps> = ({
|
||||||
...payload,
|
...payload,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
history.push({pathname:history?.location?.pathname,search: ``});
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
delCookie('autologin');
|
delCookie('autologin');
|
||||||
delCookie('logintrustie');
|
delCookie('logintrustie');
|
||||||
|
|
|
@ -92,7 +92,7 @@ const UserModel: UserModelType = {
|
||||||
},
|
},
|
||||||
*getUserInfo({ payload }, { call, put }) {
|
*getUserInfo({ payload }, { call, put }) {
|
||||||
// location.search,,debug:"admin"
|
// location.search,,debug:"admin"
|
||||||
const response = yield call(getUserInfo, { ...payload})
|
const response = yield call(getUserInfo, { ...payload,debug:"admin"})
|
||||||
localStorage.userInfo = JSON.stringify(response);
|
localStorage.userInfo = JSON.stringify(response);
|
||||||
|
|
||||||
yield put({
|
yield put({
|
||||||
|
|
Loading…
Reference in New Issue