diff --git a/src/components/Header/components/User/index.tsx b/src/components/Header/components/User/index.tsx index 663dfb67..31545673 100644 --- a/src/components/Header/components/User/index.tsx +++ b/src/components/Header/components/User/index.tsx @@ -277,6 +277,7 @@ const User: FC = ({ ...payload, }, }); + history.push({pathname:history?.location?.pathname,search: ``}); window.location.reload(); delCookie('autologin'); delCookie('logintrustie'); diff --git a/src/models/user/index.ts b/src/models/user/index.ts index dc14a588..ebe990fa 100755 --- a/src/models/user/index.ts +++ b/src/models/user/index.ts @@ -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({