fix: 修正搜索条目无法完全显示的问题

- 为查询/搜索添加更大的limit
This commit is contained in:
2025-12-18 15:05:17 +08:00
parent fcaf595b73
commit 33c0b9cc43
6 changed files with 17 additions and 7 deletions

View File

@ -51,9 +51,19 @@
// 展开目标项
activeNames.value = [target.id];
await nextTick();
await new Promise((resolve) => setTimeout(resolve, 100)); // 等待动画完成
// 平滑滚动到对应位置
const el = document.querySelector(`#q-${target.id}`);
el?.scrollIntoView({ behavior: 'smooth', block: 'start' });
// const el = document.querySelector(`#q-${target.id}`);
// el?.scrollIntoView({ behavior: 'smooth', block: 'start' });
setTimeout(() => {
const el = document.querySelector(`#q-${target.id}`);
el?.scrollIntoView({
behavior: 'smooth',
block: 'start',
});
}, 200); // 与 el-collapse 的 transition 时间匹配
},
{ immediate: true }
);