vue 将值存储到vuex 报错问题
如何解决:
computed: {
addModal: {
get: function () {
return this.$store.state.addModal
},
set: function (newValue) {
this.$store.state.addModal = newValue
}
}
},
设置一个set
- 上一篇 »angularjs 转html 报错问题
- 下一篇 »php微信网页授权刷新报错解决方案
如何解决:
computed: {
addModal: {
get: function () {
return this.$store.state.addModal
},
set: function (newValue) {
this.$store.state.addModal = newValue
}
}
},
设置一个set