mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复添加元素后无法直接ctrl+z 撤销
This commit is contained in:
parent
2391f56f20
commit
ecee368b02
@ -38,7 +38,9 @@ export default () => {
|
||||
store.commit(MutationTypes.SET_ACTIVE_ELEMENT_ID_LIST, [element.id])
|
||||
|
||||
if (creatingElement.value) store.commit(MutationTypes.SET_CREATING_ELEMENT, null)
|
||||
|
||||
setTimeout(() => {
|
||||
store.commit(MutationTypes.SET_EDITORAREA_FOCUS, true)
|
||||
}, 0)
|
||||
addHistorySnapshot()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user