Browse Source
Merge pull request #24078 from abpframework/auto-merge/rel-9-3/4087
Merge branch rel-10.0 with rel-9.3
pull/24080/head
Ma Liming
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
1 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Shared/Scripts/vs.js
|
|
|
@ -38,11 +38,13 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
hash = hash.split('&')[0]; |
|
|
|
|
|
|
|
var $targetElement = $(decodeURIComponent(hash)); |
|
|
|
|
|
|
|
$targetElement = $targetElement.length |
|
|
|
? $targetElement |
|
|
|
: $('[name=' + this.hash.slice(1) + ']'); |
|
|
|
: $('[name=' + hash.slice(1) + ']'); |
|
|
|
|
|
|
|
if (!$targetElement.length) { |
|
|
|
return; |
|
|
|
@ -63,6 +65,12 @@ |
|
|
|
|
|
|
|
var $myNav = $('#docs-sticky-index'); |
|
|
|
|
|
|
|
if ($myNav.length === 0) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
Toc.init($myNav); |
|
|
|
|
|
|
|
$('body').scrollspy({ |
|
|
|
target: $myNav, |
|
|
|
offset:100 |
|
|
|
|