indexData.js 257 B

12345678910111213141516171819
  1. export default {
  2. namespaced: true,
  3. state: {
  4. // 搜索关键字
  5. indexDatas: {},
  6. cartNum: 0
  7. },
  8. getters: {},
  9. mutations: {
  10. setIndexData(state, data) {
  11. state.indexDatas = data;
  12. },
  13. setCartNum(state, data) {
  14. state.cartNum = data;
  15. }
  16. }
  17. }