合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
[TOC] #### Vuex 命名空间获取 state ~~~ import { createNamespacedHelpers } from 'vuex' const { mapState, mapActions } = createNamespacedHelpers('命名空间名称') export default { computed: { ...mapState({ a: state => state.a, b: state => state.b }) }, methods: { ...mapActions([ 'foo', 'bar' ]) } } ~~~