fix(modues/web): deal with readingRecent tag clik event; remove keyup eventListener when addToBookShelfConfirm visible

This commit is contained in:
Xwite committed 2024-10-05 08:26:58 +08:00
1 parent a7f9553bc9
commit 34dd7b9d1f
2 files changed
+16 -1

No files matched your search

+3
View File
@@ -568,6 +568,9 @@ const addToBookShelfConfirm = async () => {
}
};
onBeforeRouteLeave(async (to, from, next) => {
console.log("onBeforeRouteLeave");
// 弹窗时停止响应按键翻页
window.removeEventListener("keyup", handleKeyPress);
await addToBookShelfConfirm();
next();
});