mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-06-21 17:40:25 +08:00
适配 all-in-one lite 前端运行
This commit is contained in:
@@ -132,7 +132,11 @@ export default {
|
||||
// 登录操作
|
||||
this.$refs.usernameLoginForm.validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs.verify.init();
|
||||
if (this.loginCaptchaBypassEnabled()) {
|
||||
this.verifyChange({ status: true });
|
||||
} else {
|
||||
this.$refs.verify.init();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -155,9 +159,12 @@ export default {
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
});
|
||||
this.$refs.verify.show = false;
|
||||
},
|
||||
loginCaptchaBypassEnabled() {
|
||||
return typeof BASE !== "undefined" && (BASE.LOGIN_CAPTCHA_BYPASS === true || BASE.LOGIN_CAPTCHA_BYPASS === "true");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user