Closed userquin closed 2 years ago
Fix: collapsed
should be a computed ref:
But what will be the toggle
then?
add a watcher or just add a setter to the computed: https://vuejs.org/guide/essentials/computed.html#writable-computed
@brc-dd try adding this:
watchEffect(() => {
collapsed.value = props.collapsible && props.collapsed
})
Describe the bug
just read the title
Reproduction
https://github.com/antfu/vite-plugin-pwa/tree/userquin/feat-new-theme
you can also disable pwa, just add
disable: true
option onVitePWA
plugin here: https://github.com/antfu/vite-plugin-pwa/blob/userquin/feat-new-theme/docs/vite.config.ts#L53from root folder run
pnpm install && pnpm run build
thenpnpm run docs
to start dev orpnpm run docs:preview
to start previewExpected behavior
The sidebar should update
System Info
Additional context
No response
Validations