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

This commit is contained in:
Xwite
2024-10-05 08:26:58 +08:00
parent 83d2cf43dc
commit 0898ef264e
2 changed files with 16 additions and 1 deletions
+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();
});