From 5a5e8f9fb7d14a0cfaa7dd1e1366598e3e6d51ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sunsonliu=28=E5=88=98=E9=98=B3=29?= Date: Thu, 9 Jan 2025 18:58:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#1014=20=E4=BF=AE=E5=A4=8Dengine.makeHtm?= =?UTF-8?q?l=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/hooks/Toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hooks/Toc.js b/src/core/hooks/Toc.js index 46835c11..e0e76a20 100644 --- a/src/core/hooks/Toc.js +++ b/src/core/hooks/Toc.js @@ -225,7 +225,7 @@ export default class Toc extends ParagraphBase { const lines = calculateLinesOfParagraph(preLinesMatch, 1); let ret = `
`; - ret += `

${this.$locale.toc}

`; + ret += `

${this.$locale?.toc ?? '目录'}

`; if (arr.length <= 0) { return ''; }