collection -> inspiration

This commit is contained in:
isUnknown 2024-09-10 12:09:53 +02:00
parent dfda911664
commit 0d41b27cc3
9 changed files with 61 additions and 16 deletions

View file

@ -4,14 +4,20 @@
<script setup>
import { useApiStore } from "./stores/api";
import { useUserStore } from "./stores/user";
import { ref } from "vue";
import home from "./views/Home.vue";
import inspirations from "./views/Inspirations.vue";
import { storeToRefs } from "pinia";
const components = {
home, inspirations
home,
inspirations,
};
const { user } = storeToRefs(useUserStore());
user.value = kirbyData.user;
const data = ref(null);
const api = useApiStore();
api.fetchPageData().then((res) => (data.value = res));