This commit is contained in:
@@ -6,18 +6,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useDataStore } from '@/store/dataStore'
|
||||
useHead({
|
||||
bodyAttrs: {
|
||||
class: 'bg-slate-100 dark:bg-slate-900'
|
||||
}
|
||||
})
|
||||
|
||||
// @todo : load datas as plugin/middleware (cant load pinia in plugin/middleware) ?
|
||||
onMounted(async () => {
|
||||
const dataStore = await useDataStore()
|
||||
await dataStore.loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user