Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
- [Embed Files](embed-files.md)
- [UI Kit](ui-kit.md)

- [Awesome docsify](awesome.md)
- [Changelog](changelog.md)
* [Awesome docsify](awesome.md)
* [Changelog](changelog.md)
4 changes: 2 additions & 2 deletions src/core/event/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ export function Events(Base) {
dom.on(sidebarElm, 'click', ({ target }) => {
const linkElm = target.closest('a');
const linkParent = linkElm?.closest('li');
const subSidebar = linkParent?.querySelector('.app-sub-sidebar');
const hasSubSidebar = linkParent?.querySelector('.app-sub-sidebar');

if (subSidebar) {
if (hasSubSidebar) {
dom.toggleClass(linkParent, 'collapse');
}
});
Expand Down
3 changes: 0 additions & 3 deletions src/core/fetch/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-unused-vars */
import { getParentPath, stringifyQuery } from '../router/util.js';
import { noop, isExternal } from '../util/core.js';
import { get } from '../util/ajax.js';
Expand Down Expand Up @@ -262,8 +261,6 @@ export function Fetch(Base) {
}

initFetch() {
const { loadSidebar } = this.config;

this.$fetch(_ => this.callHook('ready'));
}
};
Expand Down
Loading