data binding of v-model instructions when vue uses vuex
there are two ways to write it. I"d like to ask you some of the differences.
method one
computed: {
name: {
get() {
return this.$store.state.name
},
set(v) {
// vuexmutations
this.$store.commit("name", v)
}
}
}