change: make query id to uuid
This commit is contained in:
parent
3376746867
commit
b1daa7e64f
5 changed files with 11 additions and 12 deletions
|
@ -13,8 +13,7 @@ export const useQueryBuilderStore = defineStore("queryBuilder", {
|
|||
loadingData: "fetched" as "loading" | "fetched" | "failed",
|
||||
queryError: "" as string | { sql: string; code: string; msg: string },
|
||||
query: undefined as undefined | DynamicQueryStructure | string,
|
||||
activeQueryId: undefined as undefined | number,
|
||||
isLoadedQuery: undefined as undefined | number,
|
||||
activeQueryId: undefined as undefined | string,
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
|
|
|
@ -31,7 +31,7 @@ export const useQueryStoreStore = defineStore("queryStore", {
|
|||
this.loading = "failed";
|
||||
});
|
||||
},
|
||||
fetchQueryById(id: number): Promise<AxiosResponse<any, any>> {
|
||||
fetchQueryById(id: string): Promise<AxiosResponse<any, any>> {
|
||||
return http.get(`/admin/querystore/${id}`);
|
||||
},
|
||||
triggerSave() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue