mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 23:16:43 +00:00
feat: M2M optimizations
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -869,13 +869,19 @@ export default {
|
||||
},
|
||||
async loadMeta(updateShowFields = true) {
|
||||
this.loadingMeta = true;
|
||||
const tableMeta = await this.$store.dispatch('sqlMgr/ActSqlOp', [{
|
||||
// const tableMeta = await this.$store.dispatch('sqlMgr/ActSqlOp', [{
|
||||
// env: this.nodes.env,
|
||||
// dbAlias: this.nodes.dbAlias
|
||||
// }, 'tableXcModelGet', {
|
||||
// tn: this.table
|
||||
// }]);
|
||||
// this.meta = JSON.parse(tableMeta.meta);
|
||||
const tableMeta = await this.$store.dispatch('meta/ActLoadMeta', {
|
||||
env: this.nodes.env,
|
||||
dbAlias: this.nodes.dbAlias
|
||||
}, 'tableXcModelGet', {
|
||||
tn: this.table
|
||||
}]);
|
||||
this.meta = JSON.parse(tableMeta.meta);
|
||||
dbAlias: this.nodes.dbAlias,
|
||||
tn: this.table,
|
||||
force: true
|
||||
});
|
||||
this.loadingMeta = false;
|
||||
if (updateShowFields) {
|
||||
try {
|
||||
@@ -933,6 +939,9 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
meta() {
|
||||
return this.$store.state.meta.metas[this.table];
|
||||
},
|
||||
currentApiUrl() {
|
||||
return this.api && `${this.api.apiUrl}?` + Object.entries(this.queryParams).filter(p => p[1]).map(([key, val]) => `${encodeURIComponent(key)}=${encodeURIComponent(val)}`).join('&')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user