竞赛详情页-退出-链接去掉state值

This commit is contained in:
caishi 2023-05-31 14:13:49 +08:00
parent 22674dadf2
commit 0fa7bdf5d0
2 changed files with 2 additions and 1 deletions

View File

@ -277,6 +277,7 @@ const User: FC<PageProps> = ({
...payload,
},
});
history.push({pathname:history?.location?.pathname,search: ``});
window.location.reload();
delCookie('autologin');
delCookie('logintrustie');

View File

@ -92,7 +92,7 @@ const UserModel: UserModelType = {
},
*getUserInfo({ payload }, { call, put }) {
// location.search,,debug:"admin"
const response = yield call(getUserInfo, { ...payload})
const response = yield call(getUserInfo, { ...payload,debug:"admin"})
localStorage.userInfo = JSON.stringify(response);
yield put({