master
Joe 2 years ago
parent 3f034f4b9a
commit 94a37fc727

@ -24,7 +24,7 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
isReady: true,
});
const { dispatch } = this.props;
if (dispatch && !this.props.currentUser?.id) {
if (dispatch) {
dispatch({
type: 'user/fetchCurrent',
});

@ -65,9 +65,6 @@ const Model: LoginModelType = {
localStorage.clear()
history.replace({
pathname: '/user/login',
search: stringify({
redirect: window.location.href,
}),
});
}
},

@ -261,7 +261,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
title: '是否就业学历',
dataIndex: 'isEducation',
render(value, record, index) {
return value == 1 ? '是' : ''
return value == 1 ? '是' : ''
},
},
{
@ -290,7 +290,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
title: '是否就业学历',
dataIndex: 'isEducation',
render(value, record, index) {
return value == 1 ? '是' : ''
return value == 1 ? '是' : ''
},
},
{

Loading…
Cancel
Save