You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
212 B

import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', {
state: () => ({
active: 1,
}),
actions: {
increment(index:any) {
this.active = index
},
},
})