|
@@ -341,10 +341,10 @@ const UserModal = React.createClass({
|
|
|
}).always(function (data) {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
- this.setState({
|
|
|
+ } else {
|
|
|
+ this.setState({
|
|
|
loading: false
|
|
|
});
|
|
|
- } else {
|
|
|
message.success('保存成功!');
|
|
|
this.props.closeDesc(false, true);
|
|
|
};
|