fix - initial load fixed

This commit is contained in:
Jan Prochazka
2020-04-10 22:46:58 +02:00
parent a3ba053b77
commit eb0c2f04bd
3 changed files with 2 additions and 1 deletions

View File

@@ -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) {

View File

@@ -8,6 +8,7 @@ module.exports = {
return socket;
},
emit(message, data) {
console.log('EMIT:', message, data);
socket.emit(message, data);
},
};

View File

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