From 9b763db533fd4ef2782b8ff33afbfdf32286ce30 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 18 Apr 2025 13:12:35 +0800 Subject: [PATCH] . --- components/utility/home-redirector.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/utility/home-redirector.tsx b/components/utility/home-redirector.tsx index e3de5ce..57e4721 100644 --- a/components/utility/home-redirector.tsx +++ b/components/utility/home-redirector.tsx @@ -37,12 +37,7 @@ export default function HomeRedirector() { if (!hasLocaleInPath) { const newPath = `/${preferred}${currentPath}` console.log('......[HomeRedirector] Redirecting to:', newPath) - - // 添加延迟跳转,延迟时间为 2 秒(2000 毫秒) - setTimeout(() => { - router.replace(newPath) - }, 2000) // 这里的 2000 毫秒是 2 秒的延时,你可以根据需要调整 - + router.replace(newPath) } else { console.log('......[HomeRedirector] Already has valid locale in path, skipping redirect.') }