修复顶层元素置顶层出错的bug

This commit is contained in:
pipipi-pikachu 2021-01-25 23:12:36 +08:00
parent bfaf126fd8
commit 5145857bb0
1 changed files with 2 additions and 0 deletions

View File

@ -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()
}