redesign user data api
This commit is contained in:
parent
f132049948
commit
44361e614d
17 changed files with 80 additions and 52 deletions
|
|
@ -55,10 +55,10 @@ export const useAddImagesModalStore = defineStore("add-images-modal", () => {
|
|||
|
||||
const api = useApiStore();
|
||||
api
|
||||
.fetchPageData("materials")
|
||||
.fetchData("materials")
|
||||
.then((json) => (images.value = tabs.value[1].images = json.images));
|
||||
|
||||
api.fetchPageData("creations").then((json) => {
|
||||
api.fetchData("creations").then((json) => {
|
||||
images.value = tabs.value[2].images = json.images;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue