mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-06-22 10:00:22 +08:00
适配 all-in-one lite 前端运行
This commit is contained in:
@@ -216,7 +216,11 @@ export default {
|
||||
if (this.loginType == 'passwordLogin') {
|
||||
this.$refs.usernameLoginForm.validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs.verify.init();
|
||||
if (this.loginCaptchaBypassEnabled()) {
|
||||
this.verifyChange({ status: true });
|
||||
} else {
|
||||
this.$refs.verify.init();
|
||||
}
|
||||
}
|
||||
});
|
||||
} else if (this.loginType == 'mobileLogin') {
|
||||
@@ -268,9 +272,16 @@ export default {
|
||||
// 开启滑块验证
|
||||
verifyBtnClick() {
|
||||
if (!this.verifyStatus) {
|
||||
if (this.loginCaptchaBypassEnabled()) {
|
||||
this.verifyStatus = true;
|
||||
return;
|
||||
}
|
||||
this.$refs.verify.init();
|
||||
}
|
||||
},
|
||||
loginCaptchaBypassEnabled() {
|
||||
return typeof BASE !== "undefined" && (BASE.LOGIN_CAPTCHA_BYPASS === true || BASE.LOGIN_CAPTCHA_BYPASS === "true");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user