cate.js 337 B

12345678910111213141516171819
  1. const cate = {
  2. state: {
  3. // 当前终端平台
  4. cate_history: uni.getStorageSync('cate_history') ? uni.getStorageSync('cate_history') : []
  5. },
  6. mutations: {
  7. SET_CATE_HISTORY: (state, value) => {
  8. state.cate_history = value
  9. uni.setStorageSync('cate_history', state.cate_history)
  10. },
  11. },
  12. actions: {
  13. }
  14. }
  15. export default cate