onConfirm (keyWord) {
if (!keyWord || keyWord.trim().length === 0) {
keyWord = this.hotSearchKeyWord
this.$refs.searchBar.setValue(keyWord)
}
this.onSearch(keyWord)
if (!this.historySearch.includes(keyWord)) {
this.historySearch.push(keyWord)
setStorageSync(KEY_HISTORY_SEARCH, this.historySearch)
}
this.searchFocus = false
}
这里将searchFocus = false 会导致点击搜索后,输入框不能连续输入,只能一个一个输入!这是什么情况!