💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
[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' ]) } } ~~~