|
|
@ -30,7 +30,7 @@ |
|
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px"> |
|
|
|
<el-form-item prop="password"> |
|
|
|
<el-input v-model="loginData.loginForm.password" :placeholder="t('login.passwordPlaceholder')" |
|
|
|
:prefix-icon="iconLock" show-password type="password" @keyup.enter="getCode()" style="height: 42px;" /> |
|
|
|
:prefix-icon="iconLock" show-password type="password" @keyup.enter="passwordEnter" style="height: 42px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px" v-if="needCode"> |
|
|
@ -173,6 +173,14 @@ |
|
|
|
// verify.value.show() |
|
|
|
// } |
|
|
|
// } |
|
|
|
const passwordEnter = ()=>{ |
|
|
|
if(!needCode.value){ |
|
|
|
handleLogin() |
|
|
|
return |
|
|
|
}else{ |
|
|
|
getCode() |
|
|
|
} |
|
|
|
} |
|
|
|
function getCode() { |
|
|
|
if(!needCode.value){ |
|
|
|
return |
|
|
|