diff --git a/maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts b/maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts index b1262183b5593df2c50c88dbbea2b5cd9ea1b836..b4fb20cc1f273b66ed7ee39e2c6d299e2d5016be 100644 --- a/maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts +++ b/maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts @@ -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