yee 7 년 전
부모
커밋
4595a69819
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 });