授权2
This commit is contained in:
parent
13c6126f23
commit
c4fdea54c5
@ -292,7 +292,7 @@ const stopBack = () => {
|
||||
|
||||
// 监听后退事件
|
||||
const goBackEvent = () => {
|
||||
history.pushState({ page: 1 }, null, window.location.href);
|
||||
// history.pushState({ page: 1 }, null, window.location.href);
|
||||
//然后监听popstate事件
|
||||
window.addEventListener("popstate", (event) => {
|
||||
console.log("退出");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user