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