标签:包装 pst 最新 imp getter apm port turn pac
getters: {
showNum (state) {
return ‘当前最新的数量是【‘ + state.count + ‘】‘
}
}
<h4>{{$store.getters.showNum}}</h4>
或者
import { mapState, mapMutations, mapActions, mapGetters } from ‘vuex‘
computed: {
...mapGetters([‘showNum‘])
}
<h4>{{showNum}}</h4>
标签:包装 pst 最新 imp getter apm port turn pac
原文地址:https://www.cnblogs.com/black-eyes/p/14141761.html