temp
This commit is contained in:
@@ -30,18 +30,13 @@ class AddUser extends React.Component<AddUserProps, AddUserState> {
|
||||
};
|
||||
|
||||
switchShow = () => {
|
||||
this.setState(
|
||||
(state) => ({
|
||||
isShow: !state.isShow,
|
||||
}),
|
||||
() => {
|
||||
this.props.showAddUser && this.props.showAddUser();
|
||||
}
|
||||
);
|
||||
this.setState((state) => ({
|
||||
isShow: !state.isShow,
|
||||
}));
|
||||
};
|
||||
|
||||
handleFinish = (values: any) => {
|
||||
return trailwayAddUser(values).then((resp: any) => {
|
||||
trailwayAddUser(values).then((resp: any) => {
|
||||
if (resp.code == 200) {
|
||||
this.switchShow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user