Skip to content

Commit 425553b

Browse files
author
admin@duan-ya.com
committed
fix: ssr TypeError: Cannot read property 'indexOf' of undefined
See this problem in issue: #704
1 parent 66303fe commit 425553b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/render/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class Compiler {
109109
return html;
110110
})(text);
111111

112-
const curFileName = this.router.parse().file;
112+
const curFileName = this.router.parse(router.getCurrentPath()).file;
113113

114114
if (isCached) {
115115
this.toc = this.cacheTOC[curFileName];

0 commit comments

Comments
 (0)