master
Joe 2 years ago
parent 3f034f4b9a
commit 94a37fc727

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

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

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

Loading…
Cancel
Save