fix: keep quick menu open while interacting
This commit is contained in:
parent
e25384d342
commit
57f218d57c
@ -2581,12 +2581,41 @@ async function bootstrapApp() {
|
|||||||
|
|
||||||
handleInputFocus() {
|
handleInputFocus() {
|
||||||
this.inputIsFocused = true;
|
this.inputIsFocused = true;
|
||||||
|
this.closeQuickMenu();
|
||||||
},
|
},
|
||||||
|
|
||||||
handleInputBlur() {
|
handleInputBlur() {
|
||||||
this.inputIsFocused = false;
|
this.inputIsFocused = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleRealtimeTerminalClick() {
|
||||||
|
if (!this.isConnected) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.openRealtimeTerminal();
|
||||||
|
},
|
||||||
|
|
||||||
|
handleFocusPanelToggleClick() {
|
||||||
|
if (!this.isConnected) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.toggleFocusPanel();
|
||||||
|
},
|
||||||
|
|
||||||
|
handleTokenPanelToggleClick() {
|
||||||
|
if (!this.currentConversationId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.toggleTokenPanel();
|
||||||
|
},
|
||||||
|
|
||||||
|
handleCompressConversationClick() {
|
||||||
|
if (this.compressing || this.streamingMessage || !this.isConnected) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.compressConversation();
|
||||||
|
},
|
||||||
|
|
||||||
autoResizeInput() {
|
autoResizeInput() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const textarea = this.$refs.stadiumInput;
|
const textarea = this.$refs.stadiumInput;
|
||||||
|
|||||||
@ -746,25 +746,25 @@
|
|||||||
<div class="submenu-list">
|
<div class="submenu-list">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="menu-entry submenu-entry"
|
class="menu-entry submenu-entry"
|
||||||
@click="openRealtimeTerminal"
|
@click="handleRealtimeTerminalClick"
|
||||||
:disabled="!isConnected">
|
:disabled="!isConnected">
|
||||||
实时终端
|
实时终端
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="menu-entry submenu-entry"
|
class="menu-entry submenu-entry"
|
||||||
@click="toggleFocusPanel"
|
@click="handleFocusPanelToggleClick"
|
||||||
:disabled="!isConnected">
|
:disabled="!isConnected">
|
||||||
聚焦面板
|
聚焦面板
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="menu-entry submenu-entry"
|
class="menu-entry submenu-entry"
|
||||||
@click="toggleTokenPanel"
|
@click="handleTokenPanelToggleClick"
|
||||||
:disabled="!currentConversationId">
|
:disabled="!currentConversationId">
|
||||||
用量统计
|
用量统计
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="menu-entry submenu-entry"
|
class="menu-entry submenu-entry"
|
||||||
@click="compressConversation"
|
@click="handleCompressConversationClick"
|
||||||
:disabled="compressing || streamingMessage || !isConnected">
|
:disabled="compressing || streamingMessage || !isConnected">
|
||||||
{{ compressing ? '压缩中...' : '压缩对话' }}
|
{{ compressing ? '压缩中...' : '压缩对话' }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user