fix ShowToc true but no toc is generated
This commit is contained in:
parent
ef40815528
commit
82a79a8354
|
@ -60,6 +60,10 @@
|
|||
if (!enableTocScroll) {
|
||||
return
|
||||
}
|
||||
if (!document.querySelector('.toc')) {
|
||||
console.log('no toc found, ignore toc scroll')
|
||||
return
|
||||
}
|
||||
// console.log('enable toc scroll')
|
||||
|
||||
// always get an array here
|
||||
|
|
Loading…
Reference in New Issue