From f4c05fe82a26fc9a7ccaa5604dfb498f622ab961 Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Thu, 1 May 2025 20:10:29 +0800 Subject: [PATCH] update --- .../src/components/CommandInputBar.vue | 12 +++++++++-- .../src/components/LayoutRenderer.vue | 5 ++++- packages/frontend/src/components/Terminal.vue | 9 +++++++-- packages/frontend/src/views/WorkspaceView.vue | 20 ++++++++++++++++++- 4 files changed, 40 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/CommandInputBar.vue b/packages/frontend/src/components/CommandInputBar.vue index 083738c..2b64915 100644 --- a/packages/frontend/src/components/CommandInputBar.vue +++ b/packages/frontend/src/components/CommandInputBar.vue @@ -7,9 +7,9 @@ import { useSettingsStore } from '../stores/settings.store'; import { useQuickCommandsStore } from '../stores/quickCommands.store'; import { useCommandHistoryStore } from '../stores/commandHistory.store'; -const emit = defineEmits(['send-command', 'search', 'find-next', 'find-previous', 'close-search']); +const emit = defineEmits(['send-command', 'search', 'find-next', 'find-previous', 'close-search', 'clear-terminal']); // 添加 clear-terminal 事件 const { t } = useI18n(); -const focusSwitcherStore = useFocusSwitcherStore(); +const focusSwitcherStore = useFocusSwitcherStore(); const settingsStore = useSettingsStore(); const quickCommandsStore = useQuickCommandsStore(); const commandHistoryStore = useCommandHistoryStore(); @@ -223,6 +223,14 @@ onBeforeUnmount(() => {