问题
i have a state
state: {
movies:null,
items:''
},
saves data to the array then it is sent to the database
i have a getter
getMovies: state => {
return state.movies
}
i want to display all the movies in the database
<div v-for="item in this.$store.getters.getMovies" :key="item.id">
{{ item.name }}
</div>
this does not display the data
来源:https://stackoverflow.com/questions/59740866/displaying-items-from-firebase-realtime-database-vue-store