Browse Source

登入失败清空验证码

1178232204@qq.com 3 years ago
parent
commit
97324b5049
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/js/login.js

+ 2 - 0
src/js/login.js

@@ -102,6 +102,7 @@ function getHospitalMark() {
     //点击换一张事件
     $("#codeImg,#changeCode").click(function () {
       getSecurityCode();
+      $(".security-code input").val('')
     })
     $("#password").focus(function () {
       $(this).attr("type", "password")
@@ -175,6 +176,7 @@ function sureLogin() {
     } else {
         if(!is3His){
           getSecurityCode();
+          $(".security-code input").val('')
         }//登录失败切换验证码
       $(".divModal").remove()
       if (type == 1) {