diff --git a/docs/index.html b/docs/index.html index 14d9306..2b972bd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -52,15 +52,23 @@ return content.replace(/..\/img/g, "img"); }) + // hook.doneEach(function () { + // window.MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById('app')]); + // }) hook.doneEach(function () { - window.MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById('app')]); + // 每次路由切换时数据全部加载完成后调用,没有参数。 + // ... + if (typeof MathJax !== 'undefined') { + MathJax.Hub.Queue(["Typeset", MathJax.Hub]) + } }) } ], } + - - - - - - -