After vuex uses namespaced: true, how to put actions back into the global

when namespaced is not used, actions is registered globally by default, but after use, actions will become under the module, but I don"t want to do this. I also want it to be global. My namespace:true is just for the convenience that I introduce state, without declaring which module to introduce, but I don"t want to affect actions

.

modules: {
    foo: {
      namespaced: true,

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