使用v-model绑定vuex的state

使用v-model绑定vuex的state
注意事项,
const store = new Vuex.Store({
// …
strict: true
})
在严格模式下,无论何时发生了状态变更且不是由 mutation 函数引起的,将会抛出错误。因此使用v-model后不要使用严格模式,而且严格模式不要在发布环境下启用严格模式!