mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
15 lines
248 B
TypeScript
15 lines
248 B
TypeScript
import { defineStore } from 'pinia'
|
|
|
|
export const useCounterStore = defineStore('counter', {
|
|
state: () => ({ count: 0 }),
|
|
actions: {
|
|
increment() {
|
|
this.count++
|
|
},
|
|
reset() {
|
|
this.count = 0
|
|
},
|
|
},
|
|
persist: true,
|
|
})
|