diff --git a/src/pages/page1/saicComponents/Init.vue b/src/pages/page1/saicComponents/Init.vue index ee79836..e1dc945 100644 --- a/src/pages/page1/saicComponents/Init.vue +++ b/src/pages/page1/saicComponents/Init.vue @@ -1655,6 +1655,7 @@ 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) { @@ -1723,7 +1724,6 @@ export default { } } } - Api.asc_UpdateTableOfContents() for (let index = 0; index < allElement; index++) { const element = oDocument.GetElement(index) if ('blockLvlSdt' === element.GetClassType()) {