This commit is contained in:
hailin 2025-04-21 01:51:06 +08:00
parent 50b2aeedcc
commit ef8bf5b2b6
1 changed files with 2 additions and 0 deletions

View File

@ -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