.blue {color: #2175bc;}
<ul>
<li v-for="(todo, index) in todos" v-on:click="addClass(index)" v-bind:class="{ blue:index==current}">
{{ todo.text }}
</li>
</ul>
current:0,
todos: [
{ text: '选项一' },
{ text: '选项二' },
{ text: '选项三' }
]
methods:{
addClass(index){
this.current=index;
}
}