<el-input v-model="password" placeholder="密码" type="password" @keyup.enter.native="doLogin"></el-input>
监听回车事件需要添加.native即可;
<el-input v-model="password" placeholder="密码" type="password" @keyup.enter.native="doLogin"></el-input>
监听回车事件需要添加.native即可;
转载于:https://www.cnblogs.com/t258/p/8056532.html