dengzhiguo 6 years ago
parent
commit
40addc271d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/component/manageCenter/topTab.jsx

+ 2 - 2
js/component/manageCenter/topTab.jsx

@@ -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);
             };