【发布时间】:2018-10-17 22:00:06
【问题描述】:
我可以将参数从data 属性中的vuex 操作传递给vuex 操作已使用mapActions 映射的组件吗?
例如 someValue 应该通过映射的动作传递动作 add:
import { mapActions } from 'vuex'
...
data: function() {
return {
someValue: ''
}
},
methods: mapActions([
'add'
])
【问题讨论】: