mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 15:36:28 +00:00
fix - initial load fixed
This commit is contained in:
@@ -14,7 +14,6 @@ module.exports = {
|
|||||||
const existing = this.opened.find(x => x.conid == conid && x.database == database);
|
const existing = this.opened.find(x => x.conid == conid && x.database == database);
|
||||||
if (!existing) return;
|
if (!existing) return;
|
||||||
existing.structure = structure;
|
existing.structure = structure;
|
||||||
conid;
|
|
||||||
socket.emit(`database-structure-changed-${conid}-${database}`);
|
socket.emit(`database-structure-changed-${conid}-${database}`);
|
||||||
},
|
},
|
||||||
handle_error(conid, database, props) {
|
handle_error(conid, database, props) {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ module.exports = {
|
|||||||
return socket;
|
return socket;
|
||||||
},
|
},
|
||||||
emit(message, data) {
|
emit(message, data) {
|
||||||
|
console.log('EMIT:', message, data);
|
||||||
socket.emit(message, data);
|
socket.emit(message, data);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export default function useTableInfo({ conid, database, schemaName, pureName })
|
|||||||
const tableInfo = useFetch({
|
const tableInfo = useFetch({
|
||||||
url: 'tables/table-info',
|
url: 'tables/table-info',
|
||||||
params: { conid, database, schemaName, pureName },
|
params: { conid, database, schemaName, pureName },
|
||||||
|
reloadTrigger: `database-structure-changed-${conid}-${database}`,
|
||||||
});
|
});
|
||||||
return tableInfo;
|
return tableInfo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user