diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index e2f99fa..2ffe1ef 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -429,7 +429,7 @@ export class CommandAdapt { const changeElementList = this.range.getRangeElementList() if (!changeElementList || !changeElementList.length) return // 如果包含列表则设置为取消列表 - const isUnsetList = changeElementList.find(el => el.listType) + const isUnsetList = changeElementList.find(el => el.listType === listType && el.listStyle === listStyle) // 设置值 const listId = getUUID() changeElementList.forEach(el => {