fix: lose line break when set title

This commit is contained in:
Hufe921
2023-04-07 21:09:37 +08:00
parent 8f1053ccfe
commit 722a910145
+1
View File
@@ -409,6 +409,7 @@ export class CommandAdapt {
const titleId = getUUID() const titleId = getUUID()
const titleOptions = this.draw.getOptions().title const titleOptions = this.draw.getOptions().title
changeElementList.forEach(el => { changeElementList.forEach(el => {
if (!el.type && el.value === ZERO) return
if (payload) { if (payload) {
el.level = payload el.level = payload
el.titleId = titleId el.titleId = titleId