From c5e091da084f132f13743f6a659a0aa5169597f6 Mon Sep 17 00:00:00 2001 From: hypercross Date: Sun, 22 Mar 2026 10:11:41 +0800 Subject: [PATCH] fix: toc uri --- src/components/Sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index e5e8177..a2c80af 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -24,7 +24,7 @@ const SidebarContent: Component = (props) => { // 响应式获取当前文件的标题列表 const currentFileHeadings = createMemo(() => { - const pathname = location.pathname; + const pathname = decodeURIComponent(location.pathname); return props.pathHeadings[pathname] || props.pathHeadings[`${pathname}.md`] || []; });