mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +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);
|
||||
if (!existing) return;
|
||||
existing.structure = structure;
|
||||
conid;
|
||||
socket.emit(`database-structure-changed-${conid}-${database}`);
|
||||
},
|
||||
handle_error(conid, database, props) {
|
||||
|
||||
@@ -8,6 +8,7 @@ module.exports = {
|
||||
return socket;
|
||||
},
|
||||
emit(message, data) {
|
||||
console.log('EMIT:', message, data);
|
||||
socket.emit(message, data);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@ export default function useTableInfo({ conid, database, schemaName, pureName })
|
||||
const tableInfo = useFetch({
|
||||
url: 'tables/table-info',
|
||||
params: { conid, database, schemaName, pureName },
|
||||
reloadTrigger: `database-structure-changed-${conid}-${database}`,
|
||||
});
|
||||
return tableInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user