vuepress
vuepress copied to clipboard
侧边栏配置 collapsable: true, 但第一个始终会展开
- [ ] I confirm that this is an issue rather than a question.
Bug report
Steps to reproduce
https://vuepress.vuejs.org/zh/theme/default-theme-config.html#%E5%A4%9A%E4%B8%AA%E4%BE%A7%E8%BE%B9%E6%A0%8F
按 多个侧边栏来配置
sidebar: {
'/foo/': [
{
title: 'DD'
collapsable: true
children: []
}
],
'/bar/': [
{
title: 'DD'
collapsable: true
children: []
}
],
// fallback
'/': [
'', /* / */
'contact', /* /contact.html */
'about' /* /about.html */
]
}
What is expected?
What is actually happening?
Other relevant information
- Output of
npx vuepress info
in my VuePress project: