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();
         callback();
     },
     },
     reloadVCode() {
     reloadVCode() {
-        this.state.vCodeUrl = globalConfig.context + '/open/getVCode?t=' + Math.random();
+        this.setState({ vCodeUrl: globalConfig.context + '/open/getVCode?t=' + Math.random() })
     },
     },
     closeModal() {
     closeModal() {
         this.setState({ showDesc: false });
         this.setState({ showDesc: false });

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

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