cate.js 445 B

123456789101112131415
  1. "use strict";
  2. var common_vendor = require("../../common/vendor.js");
  3. const cate = {
  4. state: {
  5. cate_history: common_vendor.index.getStorageSync("cate_history") ? common_vendor.index.getStorageSync("cate_history") : []
  6. },
  7. mutations: {
  8. SET_CATE_HISTORY: (state, value) => {
  9. state.cate_history = value;
  10. common_vendor.index.setStorageSync("cate_history", state.cate_history);
  11. }
  12. },
  13. actions: {}
  14. };
  15. exports.cate = cate;