fix 81432

This commit is contained in:
赵霄
2024-01-29 17:13:33 +08:00
parent 52d3afd690
commit 2b8e26e050
+3 -4
View File
@@ -298,13 +298,12 @@ export default {
paraPr.SetJc('left')
paraPr.SetIndFirstLine(-150)
const oParagraph1 = Api.CreateParagraph()
oParagraph1.AddText(oParagraph.GetText())
oParagraph1.SetIndLeft(574)
oParagraph1.SetNumbering(oNumLvl)
oParagraph1.SetSpacingAfter(32)
oParagraph1.SetFontSize(18)
oDocument.InsertContent([oParagraph1])
let GetNext = oParagraph1.GetNext()
GetNext.Delete()
oParagraph.Delete()
} catch (error) {
console.error(error)
@@ -422,8 +421,8 @@ export default {
oParagraph.SetSpacingAfter(34, false)
oParagraph.SetNumbering(oNumLvl)
oDocument.InsertContent([oParagraph])
let GetNext = oParagraph.GetNext()
GetNext.Delete()
// let GetNext = oParagraph.GetNext()
// GetNext.Delete()
// oParagraph.Delete()
} catch (error) {
console.error(error)