update
This commit is contained in:
@@ -447,7 +447,6 @@ const handleQuickCommandExecute = (command: string) => {
|
||||
v-if="showPopupFileManagerBoolean"
|
||||
@click="openFileManagerModal"
|
||||
class="flex-shrink-0 flex items-center justify-center w-8 h-8 border border-border/50 rounded-lg text-text-secondary transition-colors duration-200 hover:bg-border hover:text-foreground"
|
||||
:title="t('fileManager.title', '文件管理器')"
|
||||
>
|
||||
<i class="fas fa-folder text-base"></i>
|
||||
</button>
|
||||
@@ -456,7 +455,6 @@ const handleQuickCommandExecute = (command: string) => {
|
||||
v-if="showPopupFileEditorBoolean"
|
||||
@click="openFileEditorModal"
|
||||
class="flex-shrink-0 flex items-center justify-center w-8 h-8 border border-border/50 rounded-lg text-text-secondary transition-colors duration-200 hover:bg-border hover:text-foreground"
|
||||
:title="t('fileEditor.title', '文件编辑器')"
|
||||
>
|
||||
<i class="fas fa-edit text-base"></i>
|
||||
</button>
|
||||
|
||||
@@ -148,14 +148,12 @@ const handleContextMenuPaste = async (event: MouseEvent) => {
|
||||
const addContextMenuListener = () => {
|
||||
if (terminalRef.value) {
|
||||
terminalRef.value.addEventListener('contextmenu', handleContextMenuPaste);
|
||||
console.log(`[Terminal ${props.sessionId}] Right-click paste listener added.`);
|
||||
}
|
||||
};
|
||||
|
||||
const removeContextMenuListener = () => {
|
||||
if (terminalRef.value) {
|
||||
terminalRef.value.removeEventListener('contextmenu', handleContextMenuPaste);
|
||||
console.log(`[Terminal ${props.sessionId}] Right-click paste listener removed.`);
|
||||
}
|
||||
};
|
||||
// --- 右键粘贴功能结束 ---
|
||||
@@ -245,7 +243,6 @@ onMounted(() => {
|
||||
setTimeout(() => {
|
||||
// Re-check if still active and terminal exists
|
||||
if (props.isActive && terminal && terminalRef.value && terminalRef.value.offsetHeight > 0) {
|
||||
console.log(`[Terminal ${props.sessionId}] Executing delayed fit and resize.`);
|
||||
fitAndEmitResizeNow(terminal);
|
||||
// Also ensure focus when becoming active
|
||||
terminal.focus();
|
||||
|
||||
Reference in New Issue
Block a user