fix:change tab bug

This commit is contained in:
shanhexi
2023-12-13 12:01:31 +08:00
parent 69ed03416c
commit d646817bf8
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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 (