feat(structure): keep newly created tables open for editing

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-24 12:20:33 +08:00
1 parent 1aa8b21a87
commit 1b2e4e1a6f
18 files changed
+476 -10

No files matched your search

+6 -1
View File
@@ -4371,9 +4371,13 @@ onUnmounted(() => {
}
"
@structure-editor-saved="
(tabId: string, commentChanged: boolean) => {
(tabId: string, commentChanged: boolean, createdTableName?: string) => {
const tab = queryStore.tabs.find((candidate) => candidate.id === tabId);
if (!tab) return;
if (createdTableName) {
tab.structureTableName = createdTableName;
tab.title = t('structureEditor.editTabTitle', { tableName: createdTableName });
}
onStructureEditorSaved(
async () => {
await onReloadData(tabId);
@@ -4387,6 +4391,7 @@ onUnmounted(() => {
tableName: tab.structureTableName || '',
},
commentChanged,
!!createdTableName,
);
}
"