[Vuejs]-Vue select doesn't show initial value

0👍

You need no computed method to display data from vuex store.

v-model="table.tableStyle" sets the first displayed item, if it is initialized with anything that is not included in the array, no item will be selected before you select one manually.

Try:

data:{ 
  return {
   ...
   table.tableStyle: this.$store.getters.getTableStyles[0] 
  }
}

I dont know if this works in data section.

Leave a comment