在按钮事件里加上这一段this.$nextTick(() =>{ this.$refs.input.focus()}) 转载于:https://www.cnblogs.com/smght/p/10005675.html