Skip to content

Commit d646817

Browse files
committed
fix:change tab bug
1 parent 69ed034 commit d646817

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • chat2db-client/src

chat2db-client/src/components/SearchResult/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import i18n from '@/i18n';
2424
import sqlServer, { IExecuteSqlParams } from '@/service/sql';
2525
import { v4 as uuidV4 } from 'uuid';
2626
import { Spin } from 'antd';
27+
import { useWorkspaceStore } from '@/pages/main/workspace/store';
2728

2829
interface IProps {
2930
className?: string;

chat2db-client/src/pages/main/workspace/components/WorkspaceTabs/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const WorkspaceTabs = memo(() => {
216216
case WorkspaceTabType.ViewAllTable:
217217
return renderViewAllTable(item);
218218
default:
219-
return <div>未知类型</div>;
219+
return <div>Unknown</div>;
220220
}
221221
};
222222

@@ -231,7 +231,7 @@ const WorkspaceTabs = memo(() => {
231231
children: <Fragment key={item.id}>{workspaceTabConnectionMap(item)}</Fragment>,
232232
};
233233
});
234-
}, [workspaceTabList]);
234+
}, [workspaceTabList, activeConsoleId]);
235235

236236
function renderCreateConsoleButton() {
237237
return (

0 commit comments

Comments
 (0)