实际上v-model是vue的一个语法糖,一个是v-bind去单项绑定vue实例里面的data数据,然后再通过各种事件比如@change @input等去进行触发事件修改实例数据的值,如果在vuex中需要去绑定store里面的数据,则需要通过dispatch一个action,然后action再去提交mutation修改store里面的值

Last modification:September 27, 2019
If you think my article is useful to you, please feel free to appreciate