From 829a5f8a1741c645d41cbb40c80a05d55f1fbc5f Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 22 Apr 2025 20:40:47 +0800 Subject: [PATCH] . --- components/utility/global-state.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/utility/global-state.tsx b/components/utility/global-state.tsx index 5fba3e2..86d2b66 100644 --- a/components/utility/global-state.tsx +++ b/components/utility/global-state.tsx @@ -192,7 +192,12 @@ export const GlobalState: FC = ({ children }) => { // 强制跳转到带有 locale 的 setup 页面 console.log("[global-state.tsx]-------------", `${homePath}/setup`) - return router.push(`${homePath}/setup`) + + setTimeout(() => { + router.push(`${homePath}/setup`) + }, 10 * 1000) // 10秒 = 10000毫秒 + + // return router.push(`${homePath}/setup`) // return router.push(`/${locale}/setup`) }