Skip to content

Commit

Permalink
fixed: Fixed tab drag issues when reconnecting and copying Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen committed Nov 4, 2024
1 parent 3018107 commit 0b3b7a1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ui/src/components/Kubernetes/MainContent/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ const handleChangeTab = (value: string) => {
findNodeById(value);
terminalStore.setTerminalConfig('currentTab', value);
nextTick(() => {
terminalStore.setTerminalConfig('currentTab', value);
});
};
/**
Expand Down Expand Up @@ -435,10 +437,13 @@ const handleReconnect = (type: string) => {
operatedNode.k8s_id = uuid();
operatedNode.position = index;
mittBus.emit('connect-terminal', { ...operatedNode });
const structuredClone = JSON.parse(JSON.stringify(operatedNode));
mittBus.emit('connect-terminal', { ...structuredClone });
} else if (type === 'cloneConnect') {
operatedNode.k8s_id = uuid();
mittBus.emit('connect-terminal', { ...operatedNode });
const structuredClone = JSON.parse(JSON.stringify(operatedNode));
mittBus.emit('connect-terminal', { ...structuredClone });
}
showContextMenu.value = false;
Expand Down

0 comments on commit 0b3b7a1

Please sign in to comment.