diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index f433984..5b6861c 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -42,9 +42,7 @@ const FileTreeNode: Component<{ onClick={handleClick} > - - {isExpanded() ? "📂" : "📁"} - + {isExpanded() ? "📂" : "📁"} 📄 @@ -135,7 +133,8 @@ export const Sidebar: Component = (props) => { onMount(() => { const updateHeadings = () => { const pathname = location.pathname; - const headings = pathHeadings()[pathname] || pathHeadings()[`${pathname}.md`]; + const headings = + pathHeadings()[pathname] || pathHeadings()[`${pathname}.md`]; setCurrentFileHeadings(headings || []); }; updateHeadings(); @@ -145,7 +144,7 @@ export const Sidebar: Component = (props) => { {/* 遮罩层 */}
{/* 侧边栏 */}