diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue index 7751297e1..084b29a4e 100644 --- a/src/views/login/components/LoginForm.vue +++ b/src/views/login/components/LoginForm.vue @@ -33,7 +33,7 @@ :prefix-icon="iconLock" show-password type="password" @keyup.enter="getCode()" style="height: 42px;" /> - +
{ @@ -234,7 +234,7 @@ return } let res = null - if(needCode.value=='false'){ + if(!needCode){ res = await LoginApi.loginNoCode(loginData.loginForm) }else{ res = await LoginApi.login(loginData.loginForm)