vuex核心概念
State——this.$store.state.xxx——mapState 取值
Getter——this.$store.getters.xxx——mapGetters 取值
Mutation——this.$.store.commit("xxx")——mapMutations赋值
Action——this.$store.dispatch("xxx")——mapActions赋值
Module
开启命名空间 namespaced:true
嵌套模块不要过深,尽量扁平化
灵活应用createNamespacedHelpers
Lyn小娜签名:聪明出于勤奋,天才在于积累。