collection -> inspiration
This commit is contained in:
parent
dfda911664
commit
0d41b27cc3
9 changed files with 61 additions and 16 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue