diff --git a/src/App.vue b/src/App.vue index 0ba041d..5f77c9e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -254,6 +254,7 @@ onUnmounted(() => { @close="libraryVisible = false" @toast="toast" @switch-tab="(t: string) => switchTab(t as 'props' | 'ai')" + @open-deck="mode = 'editor'" /> () const libVersion = ref(0) @@ -77,6 +78,7 @@ function onSave() { function onNewBlank() { store.newBlankDeck() emit('switch-tab', 'props') + emit('open-deck') toast('已新建空白演示,在右侧添加元素') emit('close') } @@ -84,6 +86,7 @@ function onNewBlank() { function onOpen(id: string) { if (store.loadFromLibrary(id)) { toast('已打开') + emit('open-deck') emit('close') } }