mapAction的几种写法

1. 

methods: mapActions('user', {
    login (dispatch) {
      dispatch('loginAction', this)
    }
  })
2.
methods: mapActions('user', ['loginAction'])
posted @ 2020-06-14 09:19  huanglongblog  阅读(2746)  评论(0编辑  收藏  举报