🔨 命令发送.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user