fix(modues/web): deal with readingRecent tag clik event; remove keyup eventListener when addToBookShelfConfirm visible
This commit is contained in:
@@ -568,6 +568,9 @@ const addToBookShelfConfirm = async () => {
|
||||
}
|
||||
};
|
||||
onBeforeRouteLeave(async (to, from, next) => {
|
||||
console.log("onBeforeRouteLeave");
|
||||
// 弹窗时停止响应按键翻页
|
||||
window.removeEventListener("keyup", handleKeyPress);
|
||||
await addToBookShelfConfirm();
|
||||
next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user