diff --git a/buyer/src/pages/Login.vue b/buyer/src/pages/Login.vue
index 5b120474..b7736dcd 100644
--- a/buyer/src/pages/Login.vue
+++ b/buyer/src/pages/Login.vue
@@ -226,7 +226,11 @@ export default {
this.$refs[name].validate((valid) => {
if (valid) {
if (this.type) {
- this.$refs.verify.init();
+ if (this.loginCaptchaBypassEnabled()) {
+ this.verifyChange({status: true});
+ } else {
+ this.$refs.verify.init();
+ }
} else {
let data = JSON.parse(JSON.stringify(this.formSms));
apiLogin.smsLogin(data).then((res) => {
@@ -325,9 +329,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");
+ },
handleWebLogin(type) {
// 第三方登录
webLogin(type);
diff --git a/im/public/index.html b/im/public/index.html
index 1dd7f3d8..29971e97 100644
--- a/im/public/index.html
+++ b/im/public/index.html
@@ -29,6 +29,7 @@
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<% } %>
+