1. 在组件中引入mapActions 

 

import mapActions  from 'vuex'   而不是  getActions

 

2.引入 mutations-type.js

import  {ADD}  from  

import  * as type from 

 

错误写法   import  ADD

相关文章: