mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2026-03-13 09:02:05 +08:00
fix:change tab bug
This commit is contained in:
@@ -24,6 +24,7 @@ import i18n from '@/i18n';
|
||||
import sqlServer, { IExecuteSqlParams } from '@/service/sql';
|
||||
import { v4 as uuidV4 } from 'uuid';
|
||||
import { Spin } from 'antd';
|
||||
import { useWorkspaceStore } from '@/pages/main/workspace/store';
|
||||
|
||||
interface IProps {
|
||||
className?: string;
|
||||
|
||||
@@ -216,7 +216,7 @@ const WorkspaceTabs = memo(() => {
|
||||
case WorkspaceTabType.ViewAllTable:
|
||||
return renderViewAllTable(item);
|
||||
default:
|
||||
return <div>未知类型</div>;
|
||||
return <div>Unknown</div>;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -231,7 +231,7 @@ const WorkspaceTabs = memo(() => {
|
||||
children: <Fragment key={item.id}>{workspaceTabConnectionMap(item)}</Fragment>,
|
||||
};
|
||||
});
|
||||
}, [workspaceTabList]);
|
||||
}, [workspaceTabList, activeConsoleId]);
|
||||
|
||||
function renderCreateConsoleButton() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user