1. 需求 在消息框中输入消息,回车发送消息 2. 解决 一、在el-input 上绑定keyup.enter事件 <el-input style="width: 100%" v-model="message" type="textarea" placeholder="请输入消息" @keyup