diff --git a/src/core/render/compiler.js b/src/core/render/compiler.js index 255c49642..e39304b25 100644 --- a/src/core/render/compiler.js +++ b/src/core/render/compiler.js @@ -110,7 +110,7 @@ export class Compiler { return html; })(text); - const curFileName = this.router.parse().file; + const curFileName = this.router.parse(router.getCurrentPath()).file; if (isCached) { this.toc = this.cacheTOC[curFileName];