fix: index loading

This commit is contained in:
2026-02-26 14:30:09 +08:00
parent ba7b264a97
commit e262a83aac
2 changed files with 49 additions and 56 deletions
+2 -2
View File
@@ -125,8 +125,8 @@ export const Sidebar: Component<SidebarProps> = (props) => {
[],
);
onMount(() => {
const toc = generateToc();
onMount(async () => {
const toc = await generateToc();
setFileTree(toc.fileTree);
setPathHeadings(toc.pathHeadings);
});