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, '')