[Vuejs]-Data value not updated with tabs in Vue js

0đź‘Ť

Solved it. The problem is with keys in v-for, :key prop, should be unique, so here is how I solved it, in mutations addNew, add new property tabId add like this:

state.newList.push({
                tabId: new Date.now(),
                typeId: null,
                active: true,
                briefing: false,
                logs: [],
});

and App.vue change :key=“index” to :key=“event.tabId”

Leave a comment