fix: toc uri
This commit is contained in:
parent
206e799f34
commit
c5e091da08
|
|
@ -24,7 +24,7 @@ const SidebarContent: Component<SidebarContentProps> = (props) => {
|
||||||
|
|
||||||
// 响应式获取当前文件的标题列表
|
// 响应式获取当前文件的标题列表
|
||||||
const currentFileHeadings = createMemo(() => {
|
const currentFileHeadings = createMemo(() => {
|
||||||
const pathname = location.pathname;
|
const pathname = decodeURIComponent(location.pathname);
|
||||||
return props.pathHeadings[pathname] || props.pathHeadings[`${pathname}.md`] || [];
|
return props.pathHeadings[pathname] || props.pathHeadings[`${pathname}.md`] || [];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue