From 15e1f3c40ff021933ed5f034b1b73de410d9efca Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Tue, 30 Dec 2025 10:47:06 +0800 Subject: [PATCH] fix: allow quick menu actions and stabilize blank welcome --- static/src/app.ts | 10 +++++++++- static/src/components/input/InputComposer.vue | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/static/src/app.ts b/static/src/app.ts index 63a6fe9..f2796eb 100644 --- a/static/src/app.ts +++ b/static/src/app.ts @@ -151,6 +151,7 @@ const appOptions = { blankHeroActive: false, blankHeroExiting: false, blankWelcomeText: '', + lastBlankConversationId: null, blankWelcomePool: [ '有什么可以帮忙的?', '想了解些热点吗?', @@ -2427,14 +2428,21 @@ const appOptions = { refreshBlankHeroState() { const isBlank = this.isConversationBlank(); + const currentConv = this.currentConversationId || 'temp'; + const needNewWelcome = + !this.blankHeroActive || + this.lastBlankConversationId !== currentConv; + if (isBlank) { - if (!this.blankHeroExiting) { + if (needNewWelcome && !this.blankHeroExiting) { this.pickWelcomeText(); } this.blankHeroActive = true; + this.lastBlankConversationId = currentConv; } else { this.blankHeroActive = false; this.blankHeroExiting = false; + this.lastBlankConversationId = null; } }, diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue index 589f579..caaf864 100644 --- a/static/src/components/input/InputComposer.vue +++ b/static/src/components/input/InputComposer.vue @@ -15,7 +15,7 @@ type="button" class="stadium-btn add-btn" @click.stop="$emit('toggle-quick-menu')" - :disabled="!isConnected || streamingMessage || inputLocked" + :disabled="!isConnected" > +