This commit is contained in:
tcubic
2022-08-08 19:39:40 +08:00
parent c4fdea54c5
commit ffc13f66f5

View File

@@ -292,7 +292,7 @@ const stopBack = () => {
// 监听后退事件 // 监听后退事件
const goBackEvent = () => { const goBackEvent = () => {
// history.pushState({ page: 1 }, null, window.location.href); history.pushState({ page: 1 }, null, window.location.href);
//然后监听popstate事件 //然后监听popstate事件
window.addEventListener("popstate", (event) => { window.addEventListener("popstate", (event) => {
console.log("退出"); console.log("退出");