Skip to content

Commit 12f3289

Browse files
committed
docs: 修复某些情况下侧边导航无法展开的问题
1 parent 01e9685 commit 12f3289

File tree

9 files changed

+140
-184
lines changed

9 files changed

+140
-184
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

package-lock.json

Lines changed: 0 additions & 166 deletions
This file was deleted.

static/banner.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/docsify.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3443,20 +3443,20 @@
34433443
* 处理侧边栏的索引会指向其它页面锚点的情况
34443444
* 例如:uni-ui 会指向 component/README 的 id=uniui
34453445
*/
3446-
var matchCurrentPath = false;
3446+
// var matchCurrentPath = false;
34473447
var tocLength = toc.length;
3448-
if (activeEl && tocLength) {
3449-
for (var i = 0; i < tocLength; i++) {
3450-
if (toc[i].slug === currentPath) {
3451-
matchCurrentPath = true;
3452-
break;
3453-
}
3454-
}
3455-
}
3456-
if (matchCurrentPath) {
3457-
this.toc = [];
3458-
return;
3459-
}
3448+
// if (activeEl && tocLength) {
3449+
// for (var i = 0; i < tocLength; i++) {
3450+
// if (toc[i].slug === currentPath) {
3451+
// matchCurrentPath = true;
3452+
// break;
3453+
// }
3454+
// }
3455+
// }
3456+
// if (matchCurrentPath) {
3457+
// this.toc = [];
3458+
// return;
3459+
// }
34603460

34613461
var homepage = $docsify.homepage.split('.').slice(0,-1).join('.')
34623462

static/docsify.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)