<el-input v-model.trim="name" @input="projectNameInput" /> projectNameInput(value) { this.keyword = value this.$refs.autocomplete.handleInput(value); this.$refs.autocomplete.activated = true;//这句话是重点 } <el-autocomplete ref="autocomplete" v-model="keyword" :fetch-suggestions="querySearchAsync" @select="handleSelect"> </el-autocomplete>