测试
This commit is contained in:
parent
b660b31e9a
commit
13c6126f23
@ -295,6 +295,7 @@ 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("退出");
|
||||||
wx.miniProgram.navigateBack();
|
wx.miniProgram.navigateBack();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user