参考 vuex官网 1.页面引入 import { mapGetters, mapState, mapMutations, mapActions } from 'vuex'; 在vue的页面中引用辅助函数 2.页面中使用