🔨 命令发送.

This commit is contained in:
lijiahangmax
2024-12-16 20:54:35 +08:00
parent 6d74b4379e
commit 1227ed1770
16 changed files with 317 additions and 167 deletions

View File

@@ -65,6 +65,7 @@ export default defineStore('terminal', {
keys: []
} as TerminalShortcutSetting,
},
commandBarVisible: false,
hosts: {} as AuthorizedHostQueryResponse,
tabManager: new TerminalTabManager(),
panelManager: new TerminalPanelManager(),
@@ -124,6 +125,11 @@ export default defineStore('terminal', {
}
},
// 修改命令发送显示
setCommandBarVisible(visible: boolean) {
this.commandBarVisible = visible;
},
// 加载主机列表
async loadHosts() {
if (this.hosts.hostList?.length) {

View File

@@ -4,6 +4,7 @@ import type { TerminalTheme } from '@/api/asset/terminal';
export interface TerminalState {
preference: TerminalPreference;
commandBarVisible: boolean;
hosts: AuthorizedHostQueryResponse;
tabManager: ITerminalTabManager;
panelManager: ITerminalPanelManager;
@@ -38,7 +39,6 @@ export interface TerminalDisplaySetting {
// 操作栏设置
export interface TerminalActionBarSetting {
commandInput?: boolean;
connectStatus?: boolean;
[key: string]: unknown;