1、vuex的辅助函数
辅助函数分别有
mapState 在computed中使用 使用方式:…mapState([""])
mapGetters 在computed中使用 使用方式:…mapGetters([""])
mapMutations 在methods中使用 使用方式:…mapMutations([""])
mapActions 在methods中使用 使用方式:…mapActions([""])
使用前需要先引入
import { mapActions, mapGetters, mapMutations, mapState } from 'vuex'
后续更新中…