fix: 侧边栏子菜单默认收起状态
- 删除了自动展开当前活动页面子菜单的代码 - 当用户首次访问网站时,所有子菜单现在默认保持收起状态
This commit is contained in:
@@ -613,7 +613,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if (activeNavItem) {
|
||||
const activeWrapper = activeNavItem.closest('.nav-item-wrapper');
|
||||
if (activeWrapper) {
|
||||
activeWrapper.classList.add('expanded');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user