fix: index loading
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user