yee hace 7 años
padre
commit
4595a69819
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      js/component/sign/account.jsx
  2. 1 1
      js/component/sign/groupAccount.jsx

+ 1 - 1
js/component/sign/account.jsx

@@ -146,7 +146,7 @@ const LoginContent = Form.create()(React.createClass({
         callback();
     },
     reloadVCode() {
-        this.state.vCodeUrl = globalConfig.context + '/open/getVCode?t=' + Math.random();
+        this.setState({ vCodeUrl: globalConfig.context + '/open/getVCode?t=' + Math.random() })
     },
     closeModal() {
         this.setState({ showDesc: false });

+ 1 - 1
js/component/sign/groupAccount.jsx

@@ -143,7 +143,7 @@ const Group = Form.create()(React.createClass({
         callback();
     },
     reloadVCode() {
-        this.state.vCodeUrl = globalConfig.context + '/open/getVCode?t=' + Math.random();
+        this.setState({ vCodeUrl: globalConfig.context + '/open/getVCode?t=' + Math.random() });
     },
     closeModal() {
         this.setState({ showDesc: false });