web: 优化目录跳转

This commit is contained in:
Xwite committed 2023-05-11 13:20:36 +08:00
1 parent 1f4a223ad4
commit 757d170d40
2 files changed
+15 -19

No files matched your search

-2
View File
@@ -520,8 +520,6 @@ onMounted(() => {
let data = res.data.data;
store.setCatalog(data);
store.setReadingBook(book);
// 目录使用虚拟列表显示,需要手动显示一次以便滚动到当前位置
store.popCataVisible = true;
getContent(chapterIndex, true, chapterPos);
window.addEventListener("keyup", handleKeyPress);