update 更新目录
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user