diff --git a/themes/gitbook/components/LogoBar.js b/themes/gitbook/components/LogoBar.js
index 8c3b723e..b3f96cdf 100644
--- a/themes/gitbook/components/LogoBar.js
+++ b/themes/gitbook/components/LogoBar.js
@@ -14,7 +14,7 @@ export default function LogoBar(props) {
+ className='flex text-lg font-bold md:text-2xl dark:text-gray-200'>
{
const selected = router.pathname === link.href || router.asPath === link.href
return (
changeShow(true)}
onMouseOut={() => changeShow(false)}>
- {hasSubMenu && (
-
-
- {link?.icon && } {link?.name}
- {hasSubMenu && (
-
- )}
-
-
- )}
-
{!hasSubMenu && (
{
)}
- {/* 子菜单 */}
+ {/* 包含子菜单 */}
{hasSubMenu && (
-
- {link?.subMenus?.map((sLink, index) => {
- return (
- -
-
-
- {link?.icon && }
- {sLink.title}
-
-
-
- )
- })}
-
+ <>
+
+
+ {link?.icon && } {link?.name}
+ {hasSubMenu && (
+
+ )}
+
+
+ {/* 下拉菜单内容 */}
+
+ {link?.subMenus?.map((sLink, index) => {
+ return (
+ -
+
+
+ {link?.icon && }
+ {sLink.title}
+
+
+
+ )
+ })}
+
+ >
)}
)
diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js
index 2fbd5265..415ad701 100644
--- a/themes/gitbook/index.js
+++ b/themes/gitbook/index.js
@@ -149,7 +149,7 @@ const LayoutBase = props => {