This commit is contained in:
Baobhan Sith
2025-05-01 20:10:29 +08:00
parent 4196a2f51d
commit f4c05fe82a
4 changed files with 40 additions and 6 deletions
@@ -64,9 +64,10 @@ const emit = defineEmits({
'find-next': null, // ()
'find-previous': null, // ()
'close-search': null, // ()
'clear-terminal': null, // () +++ 添加 clear-terminal 事件 +++
// --- 移除 RDP 事件 ---
});
// --- Setup ---
const layoutStore = useLayoutStore();
const sessionStore = useSessionStore();
@@ -214,6 +215,7 @@ const componentProps = computed(() => {
onFindNext: () => emit('find-next'),
onFindPrevious: () => emit('find-previous'),
onCloseSearch: () => emit('close-search'),
onClearTerminal: () => emit('clear-terminal'), // --- 移除日志 ---
};
case 'connections':
// WorkspaceConnectionList 需要转发 connect-request 等事件
@@ -507,6 +509,7 @@ onMounted(() => {
@find-next="emit('find-next')"
@find-previous="emit('find-previous')"
@close-search="emit('close-search')"
@clear-terminal="() => emit('clear-terminal')" <!-- --- 移除日志 --- -->
class="flex-grow overflow-auto"
/>
</pane>