ProductStore, move API calls to separate file

This commit is contained in:
2024-09-18 15:59:16 +02:00
parent a254f99404
commit fbbfcdf365
8 changed files with 133 additions and 123 deletions

View File

@@ -5,13 +5,17 @@ import { i18n } from './plugins/i18n';
import { ref } from 'vue';
import vuetify from './plugins/vuetify';
import navigationItems from './components/navigationItems.vue';
import { useProductStore } from './data/stores/productStore';
const userStore = useUserStore()
const productStore = useProductStore()
const theme = useTheme()
const navRail = ref(vuetify.display.mobile)
theme.global.name.value = userStore.theme
i18n.global.locale = userStore.language
productStore.fetchAllProducts()
</script>
<template>