fix: lose line break when set title
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user