<el-input v-model="password" placeholder="密码" type="password" @keyup.enter.native="doLogin"></el-input>
监听回车事件需要添加.native即可;