Skip to content

Commit 0b76de5

Browse files
[fix]文档目录定位二级锚点 review by xiongjj
1 parent 7e963ba commit 0b76de5

File tree

1 file changed

+3
-0
lines changed
  • build/jsdocs/template/static/scripts

1 file changed

+3
-0
lines changed

build/jsdocs/template/static/scripts/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ $(function () {
6565
var isGlobal = window.location.href.indexOf('global.html') > -1;
6666
if (isGlobal) {
6767
filename = window.location.hash.substring(1);
68+
// global.html#GraduatedMode#.CONSTANT
69+
var secIndex = filename.indexOf('#');
70+
filename = secIndex > -1 ? filename.substring(0, secIndex) : filename;
6871
}
6972
var $currentItem = $('.main-sidebar .item[data-name="' + filename + '"]:eq(0)');
7073
if ($currentItem.length) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy