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.
- [Vuejs]-How can i get the user in firebase database, to write from a component with vuejs?
- [Vuejs]-Filter vue.js checkbox
Source:stackexchange.com