This commit is contained in:
hailin 2025-04-22 20:15:37 +08:00
parent 38e095d61b
commit 4f5d2edcdf
2 changed files with 1 additions and 2 deletions

View File

@ -201,7 +201,6 @@ export const useChatHandler = () => {
console.log("[use-chat-handler.tsx]...........localePrefix", localePrefix) console.log("[use-chat-handler.tsx]...........localePrefix", localePrefix)
console.log("[use-chat-handler.tsx]...........homePath",localePrefix)
return router.push(`${localePrefix}/${selectedWorkspace.id}/chat`) return router.push(`${localePrefix}/${selectedWorkspace.id}/chat`)
// return router.push(`/${locale}/${selectedWorkspace.id}/chat`) // return router.push(`/${locale}/${selectedWorkspace.id}/chat`)

View File

@ -54,7 +54,7 @@ export const GlobalState: FC<GlobalStateProps> = ({ children }) => {
if (locales.includes(segment)) { if (locales.includes(segment)) {
locale = segment locale = segment
} }
const homePath = locale === defaultLocale ? "/" : `/${locale}` const homePath = locale === defaultLocale ? "/" : `${locale}`