Files
nuxtci/app/store/testStore.ts
valere 6635e3403a
All checks were successful
Deploy App / test (push) Successful in 11s
Deploy App / deploy (push) Successful in 1m32s
test
2025-09-20 00:30:15 +02:00

19 lines
303 B
TypeScript

import { defineStore } from 'pinia'
export const useTestStore = defineStore('test', {
state: () => ({
datas: Array(),
}),
actions: {
async addData() {
this.datas.push('item')
}
},
getters: {
// Obtenir tous les compilations
getDatas: (state) => state.datas
}
})