From dff2b600a87604a5897dbc48de07360bca404bb7 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 27 Dec 2023 16:20:29 +0800 Subject: [PATCH] * index: fix goBack not work as expected. --- module/index/js/index.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/index/js/index.ui.js b/module/index/js/index.ui.js index f726ea2a18..e9911cc893 100644 --- a/module/index/js/index.ui.js +++ b/module/index/js/index.ui.js @@ -252,7 +252,7 @@ function updateApp(code, url, title, type) app.currentTitle = title; } - if(prevState && prevState.code === code && prevState.url === url) return; + if(prevState && prevState.code === code && prevState.url === url) return prevState; app.currentUrl = url; window.history.pushState(state, title, url);