Skip to content

Commit

Permalink
grrr
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Oct 27, 2024
1 parent 2e558bf commit 7d5b533
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/components/DocumentLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import Layout from 'vitepress/dist/client/theme-default/Layout.vue';
import { useSidebar } from 'vitepress/theme';
const layout = ref<typeof Layout | null>(null);
const { toggle } = useSidebar()
setInterval(()=>{
toggle()
}, 5000)
const { toggle, isOpen , close} = useSidebar()
if (isOpen.value) {
close()
}
</script>

0 comments on commit 7d5b533

Please sign in to comment.