This commit is contained in:
tcubic 2022-08-08 19:35:52 +08:00
parent b660b31e9a
commit 13c6126f23

View File

@ -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();
}); });
}; };