自动获取焦点无法使用element组件库,需要写原生的
<el-input v-model="input" placeholder="请输入内容" ref="input"></el-input>
this.$nextTick(() => { this.$refs.input.focus() })