修复顶层元素置顶层出错的bug
This commit is contained in:
parent
bfaf126fd8
commit
5145857bb0
|
@ -176,6 +176,8 @@ export default () => {
|
|||
else if(command === ElementOrderCommands.TOP) newElementList = moveTopElement(currentSlide.value.elements, element)
|
||||
else if(command === ElementOrderCommands.BOTTOM) newElementList = moveBottomElement(currentSlide.value.elements, element)
|
||||
|
||||
if(!newElementList) return
|
||||
|
||||
store.commit(MutationTypes.UPDATE_SLIDE, { elements: newElementList })
|
||||
addHistorySnapshot()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue