feat: add realtime terminal entry
This commit is contained in:
parent
aea1463730
commit
49d2a7b915
@ -1317,6 +1317,13 @@ async function bootstrapApp() {
|
||||
},
|
||||
|
||||
// 重置Token统计
|
||||
|
||||
openRealtimeTerminal() {
|
||||
const { protocol, hostname, port } = window.location;
|
||||
const target = `${protocol}//${hostname}${port ? ':' + port : ''}/terminal`;
|
||||
window.open(target, '_blank');
|
||||
},
|
||||
|
||||
resetTokenStatistics() {
|
||||
this.currentContextTokens = 0;
|
||||
this.currentConversationTokens = {
|
||||
|
||||
@ -531,6 +531,12 @@
|
||||
</button>
|
||||
<transition name="settings-menu">
|
||||
<div class="settings-menu" v-if="settingsOpen">
|
||||
<button type="button"
|
||||
class="menu-btn realtime-entry"
|
||||
@click="openRealtimeTerminal"
|
||||
:disabled="streamingMessage || !isConnected">
|
||||
实时终端
|
||||
</button>
|
||||
<button type="button"
|
||||
class="menu-btn focus-entry"
|
||||
@click="toggleFocusPanel"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user