|
@@ -85,7 +85,7 @@
|
|
class="form-item-style"
|
|
class="form-item-style"
|
|
style="height: 40px; margin-top: 0px;"
|
|
style="height: 40px; margin-top: 0px;"
|
|
>
|
|
>
|
|
- <GeeTest @on-load="handleGtResult" />
|
|
|
|
|
|
+ <GeeTest :reset="resetGeeTime" @on-load="handleGtResult" />
|
|
</i-form-item>
|
|
</i-form-item>
|
|
|
|
|
|
<i-form-item style="position: relative;">
|
|
<i-form-item style="position: relative;">
|
|
@@ -199,6 +199,7 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
captchaObj: null,
|
|
captchaObj: null,
|
|
|
|
+ resetGeeTime: Date.now(),
|
|
loginBtnLoading: false,
|
|
loginBtnLoading: false,
|
|
disableLoginBtnBecauseRemoteApp: true,
|
|
disableLoginBtnBecauseRemoteApp: true,
|
|
disableLoginBtnBecauseVCam: true,
|
|
disableLoginBtnBecauseVCam: true,
|
|
@@ -478,8 +479,10 @@ export default {
|
|
this.loginBtnLoading = true;
|
|
this.loginBtnLoading = true;
|
|
const before = Date.now();
|
|
const before = Date.now();
|
|
|
|
|
|
- if (!this.captchaObj.getValidate()) {
|
|
|
|
|
|
+ // console.log(this.captchaObj.getValidate());
|
|
|
|
+ if (!this.captchaObj || !this.captchaObj.getValidate()) {
|
|
this.$Message.error("请完成验证");
|
|
this.$Message.error("请完成验证");
|
|
|
|
+ this.loginBtnLoading = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
@@ -650,7 +653,10 @@ export default {
|
|
window._hmt.push(["_trackEvent", "登录页面", "登录失败", data.desc]);
|
|
window._hmt.push(["_trackEvent", "登录页面", "登录失败", data.desc]);
|
|
createLog({ currentPage: "登录页面", action: "登录失败" });
|
|
createLog({ currentPage: "登录页面", action: "登录失败" });
|
|
this.errorInfo = data.desc;
|
|
this.errorInfo = data.desc;
|
|
- this.captchaObj.reset();
|
|
|
|
|
|
+ // this.captchaObj.reset();
|
|
|
|
+ this.captchaObj.destroy();
|
|
|
|
+ // this.captchaObj = null;
|
|
|
|
+ this.resetGeeTime = Date.now();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async checkNewVersion() {
|
|
async checkNewVersion() {
|
|
@@ -1092,8 +1098,8 @@ export default {
|
|
|
|
|
|
.content {
|
|
.content {
|
|
margin-top: 100px;
|
|
margin-top: 100px;
|
|
- margin-left: 65%;
|
|
|
|
- width: 300px;
|
|
|
|
|
|
+ margin-left: 60%;
|
|
|
|
+ width: 340px;
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
background-color: white;
|
|
background-color: white;
|
|
display: grid;
|
|
display: grid;
|