data structure

This commit is contained in:
Julian Krauser 2024-12-18 14:29:33 +01:00
parent 8f4731e08a
commit a01764e471
5 changed files with 58 additions and 4 deletions

View file

@ -30,7 +30,11 @@ export const useQueryBuilderStore = defineStore("queryBuilder", {
});
},
sendQuery(offset = 0, count = 25) {
if (this.query == undefined) return;
this.queryError = "";
this.data = [];
this.totalLength = 0;
if (this.query == undefined || this.query == "" || (typeof this.query != "string" && this.query.table == ""))
return;
this.loadingData = "loading";
http
.post(`/admin/querybuilder/query?offset=${offset}&count=${count}`, {