vux模块间的互相调用

state

const {commit, dispatch, state, rootState} = store
rootState.moduleA

actions

dispatch('moduleA/get', {}, {root: true})

mutations

dispatch('moduleA/GET', {}, {root: true})

getters

const {commit, dispatch, state, rootState, rootGetters} = store
rootGetters['vip/get']

 

posted @ 2018-10-24 18:39  zhoulixue  阅读(605)  评论(0编辑  收藏  举报