evilSpins v1
This commit is contained in:
14
app/plugins/card.store.ts
Normal file
14
app/plugins/card.store.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineNuxtPlugin } from '#app'
|
||||
import { useCardStore } from '~/store/card'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
// Le code s'exécute uniquement côté client
|
||||
const cardStore = useCardStore()
|
||||
cardStore.initialize()
|
||||
|
||||
return {
|
||||
provide: {
|
||||
cardStore
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user