vue vuex 提交 this.$store.commit({type: 'setSelectPro', selectPro: this.productId}); 1、store.commit({'type':'mutation','parameter':'value'}); store.dispatch('action'); 2、获取state保存的值 store.state.state