From 77c9978cf696eeb3c3ba7b3637dc969b136812c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 12 Sep 2023 10:59:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=9B=AE=E5=BD=95=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E5=88=B0=E6=97=A7=E7=89=88=E6=9C=AConlyoffice=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/page1/saicComponents/Init.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/page1/saicComponents/Init.vue b/src/pages/page1/saicComponents/Init.vue index 47ad960..7e52fc5 100644 --- a/src/pages/page1/saicComponents/Init.vue +++ b/src/pages/page1/saicComponents/Init.vue @@ -528,7 +528,8 @@ export default { oParagraphTwo.SetBold(false) oDocument.InsertContent([oParagraphTwo]) // 目录层级只留两级 - oDocument.AddTableOfContents({ 'BuildFrom': { 'OutlineLvls': 2 } }) + // oDocument.AddTableOfContents({ 'BuildFrom': { 'OutlineLvls': 2 } }) + Api.asc_AddTableOfContents() } catch (e) { console.log(e) } @@ -1791,6 +1792,8 @@ export default { if (list && list.length > 0) { for (let i = 0; i < list.length; i++) { list[i].SetFontFamily('宋体') + list[i].SetFontSize(21) + list[i].SetBold(false) if (list[i].GetText().indexOf('前 言') !== -1 || list[i].GetText().indexOf('前言') !== -1) { let text = list[i].GetText() text = text.replace(/\s*/g, '')