#I6YCC5 用户的门户网站能否关闭验证码校验?已完成

This commit is contained in:
zen
2023-05-17 17:16:48 +08:00
parent e31c8ed8c6
commit 1cb66a7e5f

View File

@@ -136,6 +136,7 @@ export class UserLoginComponent implements OnInit, OnDestroy {
this.state = res.data.state;
this.captchaType = res.data.captcha;
if (this.captchaType === 'NONE') {
//清除校验规则
this.form.get('captcha')?.clearValidators();
} else {
//init image captcha