Bind enter event for login

This commit is contained in:
lin-xin 2017-03-02 20:08:01 +08:00
parent 2dd56af8aa
commit c9c051278a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
<el-input v-model="ruleForm.username"></el-input>
</el-form-item>
<el-form-item label="password" prop="password">
<el-input type="password" v-model="ruleForm.password"></el-input>
<el-input type="password" v-model="ruleForm.password" @keyup.enter.native="submitForm('ruleForm')"></el-input>
</el-form-item>
<div class="login-btn">
<el-button type="primary" @click="submitForm('ruleForm')">登录</el-button>