[Vuejs]-V-model same value in loop

1👍

You are assigning selected value to member that is the same between all selectors. You need to use different variables for different lists, like this:


<v-select :options="options" v-model="member[list.id]"></v-select>

data() {
    return {
      member: {}, // <- This is object now
      newitem: { name: "", type: [] },
      options: [],
      lists: [{ count: "1" }, { count: "2" }, { count: "3" }],
    };
  },

Leave a comment