TraceabilityAPP/store/counter.js

15 lines
191 B
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
import {
defineStore
} from 'pinia'
export const counterStore = defineStore('counter', {
state: () => ({
count: 0
}),
getters: {},
actions: {
increment() {
this.count++
}
}
})