diff --git a/src/app/(home)/docs/sidebar.tsx b/src/app/(home)/docs/sidebar.tsx index d5829b5..2af5e28 100644 --- a/src/app/(home)/docs/sidebar.tsx +++ b/src/app/(home)/docs/sidebar.tsx @@ -8,7 +8,7 @@ type Props = { collapsed?: boolean } -// 简化的菜单配置 - 扁平结构,支持分组 +// 菜单配置 - 扁平结构,支持分组 const MENU_ITEMS = [ { group: '官网教程', @@ -70,10 +70,10 @@ const MENU_ITEMS = [ export default function Sidebar({collapsed = false}: Props) { const pathname = usePathname() - // 获取当前文档 key (从 /help/{key} 路径中提取) + // 获取当前文档 key const getCurrentKey = useCallback(() => { const parts = pathname?.split('/') || [] - return parts[2] || '' // /help/{key} -> key + return parts[2] || '' }, [pathname]) const currentKey = getCurrentKey() diff --git a/src/app/admin/channels/page.tsx b/src/app/admin/channels/page.tsx index b650081..154a581 100644 --- a/src/app/admin/channels/page.tsx +++ b/src/app/admin/channels/page.tsx @@ -240,9 +240,9 @@ export default function ChannelsPage(props: ChannelsPageProps) { ) : hasAuth ? (
账号密码 -
+ {channel.username}:{channel.password} -
+
) : ( 无认证