mapAction的几种写法
时间:2020-06-14 10:39:14
收藏:0
阅读:245
1.
methods: mapActions(‘user‘, {
login (dispatch) {
dispatch(‘loginAction‘, this)
}
})
2.
methods: mapActions(‘user‘, [‘loginAction‘])
原文:https://www.cnblogs.com/huanglong1987/p/13123763.html
评论(0)