fix(ai-chat): 优化搜索定位 - 移除 doSearch 中多余的 $nextTick 包装,scroll-to 事件同步触发实现即时滚动定位
This commit is contained in:
@@ -163,9 +163,7 @@ export default {
|
|||||||
this.$emit('keyword-change', this.searchKeyword)
|
this.$emit('keyword-change', this.searchKeyword)
|
||||||
|
|
||||||
if (results.length > 0) {
|
if (results.length > 0) {
|
||||||
this.$nextTick(() => {
|
|
||||||
this._emitScrollTo(filteredIdx)
|
this._emitScrollTo(filteredIdx)
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user