<svg class="icon" v-for="(item,index) in expenditureList" :key="index"@click="toggle($event,item)">
const toggle=(e:Event,iconNumber:string)=>{
store.commit("modifyIconNumber",iconNumber)
console.log(e.currentTarget)
}
<svg class="icon" v-for="(item,index) in expenditureList" :key="index"@click="toggle($event,item)">
const toggle=(e:Event,iconNumber:string)=>{
store.commit("modifyIconNumber",iconNumber)
console.log(e.currentTarget)
}