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