index.js 697 B

12345678910111213141516171819202122232425262728
  1. import {
  2. SET_FLY_OBJECT,
  3. SET_FLY_AREA
  4. } from "./type.js";
  5. export default {
  6. namespaced: true,
  7. state: {
  8. _7d:[]
  9. },
  10. mutations: {
  11. [SET_FLY_OBJECT](state, flyObject) {
  12. state.flyObject = flyObject
  13. sessionStorage.setItem("flyObject", flyObject);
  14. },
  15. [SET_FLY_AREA](state, flyArea) {
  16. state.flyArea = flyArea
  17. sessionStorage.setItem("flyArea", flyArea);
  18. },
  19. },
  20. actions: {
  21. [SET_FLY_OBJECT]({ commit }, flyObject) {
  22. commit(SET_FLY_OBJECT, flyObject);
  23. },
  24. [SET_FLY_AREA]({ commit }, flyArea) {
  25. commit(SET_FLY_AREA, flyArea);
  26. },
  27. },
  28. };