cate.js 473 B

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