diff --git a/src/pages/page1/saicComponents/Init.vue b/src/pages/page1/saicComponents/Init.vue index e1dc945..ee79836 100644 --- a/src/pages/page1/saicComponents/Init.vue +++ b/src/pages/page1/saicComponents/Init.vue @@ -1655,7 +1655,6 @@ export default { let that = this that.ctx.callCommand(() => { try { - Api.asc_UpdateTableOfContents() const oDocument = Api.GetDocument() const tables = oDocument.GetAllTables() if (tables && tables.length > 0) { @@ -1724,6 +1723,7 @@ export default { } } } + Api.asc_UpdateTableOfContents() for (let index = 0; index < allElement; index++) { const element = oDocument.GetElement(index) if ('blockLvlSdt' === element.GetClassType()) {