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(() => {