fix 目录只保留两级

This commit is contained in:
赵霄
2023-09-13 17:50:10 +08:00
parent 77c9978cf6
commit 983628fcc0
+2 -2
View File
@@ -528,8 +528,8 @@ export default {
oParagraphTwo.SetBold(false)
oDocument.InsertContent([oParagraphTwo])
// 目录层级只留两级
// oDocument.AddTableOfContents({ 'BuildFrom': { 'OutlineLvls': 2 } })
Api.asc_AddTableOfContents()
oDocument.AddTableOfContents({ 'BuildFrom': { 'OutlineLvls': 2 } })
// Api.asc_AddTableOfContents()
} catch (e) {
console.log(e)
}