From ffc13f66f5fe78a0cb5e184cb7bce7fb586924ea Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Mon, 8 Aug 2022 19:39:40 +0800 Subject: [PATCH] 1 --- src/page/Home/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 6cba2c3..2af1848 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -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("退出");