Skip to content

Commit

Permalink
perf(theme): 左侧侧边栏默认展开活动项
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Jul 9, 2024
1 parent e033880 commit 3cb7d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/src/client/composables/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export function useSidebarControl(item: ComputedRef<ResolvedSidebarItem>): Sideb
}

return item.value.items
? containsActiveLink(page.value.filePathRelative || '', item.value.items)
? containsActiveLink(page.value.path, item.value.items)
: false
})

Expand Down

0 comments on commit 3cb7d88

Please sign in to comment.