vue 将值存储到vuex 报错问题

如何解决:

computed: {

addModal: {

get: function () {

return this.$store.state.addModal

},

set: function (newValue) {

this.$store.state.addModal = newValue

}

}

},

设置一个set