1. 在组件中引入mapActions 

 

import mapActions  from 'vuex'   而不是  getActions

 

2.引入 mutations-type.js

import  {ADD}  from  

import  * as type from 

 

错误写法   import  ADD

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-11
  • 2021-09-29
  • 2022-02-20
  • 2021-08-07
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2021-08-19
相关资源
相似解决方案