| 12345678910111213 |
- import { mapMutations as _mapMutations, createNamespacedHelpers } from 'vuex';
- import { useStateGetters } from './useMapper';
- /**
- * mapMutations
- * @description 参考 vuex 的mapMutations
- * https://vuex.vuejs.org/zh/guide/mutations.html#%E5%9C%A8%E7%BB%84%E4%BB%B6%E4%B8%AD%E6%8F%90%E4%BA%A4-mutation
- */
- export const mapMutations = (map: {}) => {
- let mapperFn = _mapMutations;
- return useStateGetters(map, mapperFn) as any;
- };
|