Skip to content

Commit

Permalink
fix: sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
bowencool committed Sep 8, 2022
1 parent e0199e0 commit c243ca7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/.vitepress/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ const hooks = [
];

export const sidebar: UserConfig['themeConfig']['sidebar'] = {
'/guide/': guide,
'/hooks/': hooks,
'/': guide,
// '/guide/': guide,
// '/hooks/': hooks,
'/': [...guide, ...hooks],
};

export const nav: UserConfig['themeConfig']['nav'] = [
{ text: '指南', link: '/guide/intro', activeMatch: '^/$|^/guide/' },
{
text: '组合式API',
link: hooks[0].children[0].link,
activeMatch: '/hooks/',
activeMatch: '^/hooks',
},
];

0 comments on commit c243ca7

Please sign in to comment.