From ae64825a8530124bdab929451f9c2aab5c702a59 Mon Sep 17 00:00:00 2001 From: lixinyang123 Date: Wed, 3 Apr 2024 05:25:38 +0800 Subject: [PATCH] --- js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 9cd0083..c422939 100644 --- a/js/index.js +++ b/js/index.js @@ -67,7 +67,6 @@ function guid() { } function navigation(name, isBack = false) { - if (onNavigation) onNavigation(name, isBack) window.scrollTo(0, 0); loadingState(true); @@ -87,6 +86,8 @@ function navigation(name, isBack = false) { navigation("notfound"); loadingState(false); } + + if (onNavigation) onNavigation(name, isBack) }); }