From ef8bf5b2b61f18e6363db0718e3049d79fdc1180 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Apr 2025 01:51:06 +0800 Subject: [PATCH] . --- components/sidebar/items/chat/chat-item.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/sidebar/items/chat/chat-item.tsx b/components/sidebar/items/chat/chat-item.tsx index 6754915..bad7df5 100644 --- a/components/sidebar/items/chat/chat-item.tsx +++ b/components/sidebar/items/chat/chat-item.tsx @@ -26,6 +26,8 @@ export const ChatItem: FC = ({ chat }) => { availableOpenRouterModels } = useContext(ChatbotUIContext) + const pathname = usePathname() // 获取当前路径 + const pathSegments = pathname.split("/").filter(Boolean) const locales = i18nConfig.locales const defaultLocale = i18nConfig.defaultLocale