fix #30
This commit is contained in:
parent
cf8bbbafc2
commit
bd95cf4613
1 changed files with 2 additions and 2 deletions
|
|
@ -56,10 +56,10 @@ export const useAddImagesModalStore = defineStore("add-images-modal", () => {
|
|||
const api = useApiStore();
|
||||
api
|
||||
.fetchData("materials")
|
||||
.then((json) => (images.value = tabs.value[1].images = json.images));
|
||||
.then((json) => (images.value = tabs.value[1].images = json.page.images));
|
||||
|
||||
api.fetchData("creations").then((json) => {
|
||||
images.value = tabs.value[2].images = json.images;
|
||||
images.value = tabs.value[2].images = json.page.images;
|
||||
});
|
||||
|
||||
return { images, activeTabId, tabs, activeTab };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue