fix: 删除节和幻灯片后元素焦点异常

This commit is contained in:
zxc 2024-07-28 18:54:23 +08:00
parent a13e66c42e
commit b32eceac05

View File

@ -248,7 +248,10 @@ const contextmenusSection = (el: HTMLElement): ContextmenuItem[] => {
}, },
{ {
text: '删除节和幻灯片', text: '删除节和幻灯片',
handler: () => removeSectionSlides(sectionId), handler: () => {
mainStore.setActiveElementIdList([])
removeSectionSlides(sectionId)
},
}, },
{ {
text: '删除所有节', text: '删除所有节',