web: 优化目录跳转

This commit is contained in:
Xwite
2023-05-11 13:20:36 +08:00
parent 1f4a223ad4
commit 757d170d40
2 changed files with 15 additions and 19 deletions
-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);