This commit is contained in:
parent
50b2aeedcc
commit
ef8bf5b2b6
|
|
@ -26,6 +26,8 @@ export const ChatItem: FC<ChatItemProps> = ({ chat }) => {
|
|||
availableOpenRouterModels
|
||||
} = useContext(ChatbotUIContext)
|
||||
|
||||
const pathname = usePathname() // 获取当前路径
|
||||
|
||||
const pathSegments = pathname.split("/").filter(Boolean)
|
||||
const locales = i18nConfig.locales
|
||||
const defaultLocale = i18nConfig.defaultLocale
|
||||
|
|
|
|||
Loading…
Reference in New Issue