fix 页码修改延时

This commit is contained in:
赵霄
2024-04-22 15:31:41 +08:00
parent 886e65fdaa
commit e596152cf2
+10 -6
View File
@@ -1133,12 +1133,16 @@ export default {
oParagraph9.SetColor(0, 0, 0) oParagraph9.SetColor(0, 0, 0)
oDocument.InsertContent([oParagraph9]) oDocument.InsertContent([oParagraph9])
Api.GoToFooter(1) let timerNew = setTimeout(() => {
Api.asc_SetSectionStartPage(1) Api.GoToFooter(1)
Api.GoToFooter(4) Api.asc_SetSectionStartPage(1)
Api.asc_SetSectionStartPage(1) Api.GoToFooter(4)
// Api.GoToFooter(1) Api.asc_SetSectionStartPage(1)
Api.ExitHeader_Footer(3) // Api.GoToFooter(1)
Api.ExitHeader_Footer(4)
clearTimeout(timerNew)
timerNew = null
}, 700)
console.log('初始化正文,end') console.log('初始化正文,end')
} catch (e) { } catch (e) {
console.log(e) console.log(e)