Skip to content

Commit

Permalink
fix: the link property value of SidebarItem does not support Chinese …
Browse files Browse the repository at this point in the history
…characters
  • Loading branch information
codersjj committed Aug 1, 2023
1 parent f656c96 commit 73e8033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/island/src/theme-default/logic/useSidebarData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ interface SidebarData {
}

export function useSidebarData(currentPathname: string): SidebarData {
currentPathname = decodeURIComponent(currentPathname)

Check failure on line 13 in packages/island/src/theme-default/logic/useSidebarData.ts

View workflow job for this annotation

GitHub Actions / test (14)

Insert `;`

Check failure on line 13 in packages/island/src/theme-default/logic/useSidebarData.ts

View workflow job for this annotation

GitHub Actions / test (14)

Missing semicolon

Check failure on line 13 in packages/island/src/theme-default/logic/useSidebarData.ts

View workflow job for this annotation

GitHub Actions / test (16)

Insert `;`

Check failure on line 13 in packages/island/src/theme-default/logic/useSidebarData.ts

View workflow job for this annotation

GitHub Actions / test (16)

Missing semicolon

const localeData = useLocaleSiteData();
const sidebar = localeData.sidebar ?? {};
for (const name of Object.keys(sidebar)) {
Expand Down

0 comments on commit 73e8033

Please sign in to comment.