Vue mapState与mapGetters

 import { mapState , mapGetters} from 'vuex'

computed: {
  ...mapGetters(['attrsList', 'goodsList', 'trademarkList']),
  ...mapState({total: (state) => state.Search.SearchInfo.total}),
 }
posted @ 2022-02-23 23:24  波吉国王  阅读(45)  评论(0编辑  收藏  举报