最佳答案:vuex五个核心属性分别是state、mutation、action、getter,module1.state: 用于保存需要全局共享的数据,在组件中访问state里面的数据用this.$store.