测试
This commit is contained in:
@@ -295,6 +295,7 @@ const goBackEvent = () => {
|
||||
history.pushState({ page: 1 }, null, window.location.href);
|
||||
//然后监听popstate事件
|
||||
window.addEventListener("popstate", (event) => {
|
||||
console.log("退出");
|
||||
wx.miniProgram.navigateBack();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user