This commit is contained in:
hailin 2025-04-22 19:52:09 +08:00
parent bd18ff2980
commit 842698ada9
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export const useChatHandler = () => {
const router = useRouter()
// 提取当前路径中的 locale 部分
const locale = pathname.split("/")[1] || "en"
// const locale = pathname.split("/")[1] || "en"
const {
userInput,
@ -198,6 +198,7 @@ export const useChatHandler = () => {
}
const homePath = locale === defaultLocale ? "/" : `/${locale}`
console.log("[use-chat-handler.tsx]...........homePath",homePath)
return router.push(`/${homePath}/${selectedWorkspace.id}/chat`)
// return router.push(`/${locale}/${selectedWorkspace.id}/chat`)