From e2b31579ea05ecd6da8af47c7cf86b85664f5401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Mon, 17 Aug 2026 09:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=96=87=E5=BA=93=E6=89=93=E5=BC=80/=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=E5=90=8E=E4=B8=8D=E5=88=87=E5=85=A5=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/components/modals/LibraryModal.vue | 3 +++ 2 files changed, 4 insertions(+) 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') } }