Update sidebar.ts
This commit is contained in:
@@ -102,7 +102,7 @@ async function generateSidebar(): Promise<Record<string, SidebarItem[]>> {
|
|||||||
text: displayText,
|
text: displayText,
|
||||||
items: [],
|
items: [],
|
||||||
order,
|
order,
|
||||||
collapsed: DEFAULT_COLLAPSED,
|
collapsed: i < 1 ? false : DEFAULT_COLLAPSED,
|
||||||
// 为目录添加活动匹配模式
|
// 为目录添加活动匹配模式
|
||||||
activeMatch: i === 0 ? `^/${segment}(?:/|$)` : undefined
|
activeMatch: i === 0 ? `^/${segment}(?:/|$)` : undefined
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user