fix(ai-chat): 优化搜索定位 - 移除 doSearch 中多余的 $nextTick 包装,scroll-to 事件同步触发实现即时滚动定位

This commit is contained in:
2026-05-19 15:59:58 +08:00
parent 1ee402b581
commit 31c6914880

View File

@@ -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)
})
} }
}, },