How to make two store files communicate with each other in vuex

I want to call the action, in B"s store file in A"s store file. Please see the module module in the vuex official room document, but I still don"t quite understand it

.
Mar.11,2021

Link

sign up for global action

      actions: {
        someAction: {
          root: true,
          handler (namespacedContext, payload) { ... } // -> 'someAction'
        }

use global action

/ / dispatch and commit are also localized for this module
/ / they will accept root option for the root dispatch/commit
dispatch('someOtherAction') // -> 'foo/someOtherAction'
dispatch('someOtherAction', null, { root: true }) // -> 'someOtherAction'
Menu