[Vuejs]-In a Vue component, how to update this.key data property in a loop?

0👍

You would typically set the key in your template. It’s a reserved word.

<div v-for='item in items' :key='$store.getters.getKey(item)'>{{item.title}}</div>

Leave a comment