floor.js 642 B

1234567891011121314151617181920212223242526272829303132
  1. export const state = () => ({
  2. list: {
  3. fetching: false,
  4. data: []
  5. },
  6. list_v3: {
  7. fetching: false,
  8. data: []
  9. }
  10. })
  11. export const mutations = {
  12. REQUEST_LIST (state) {
  13. state.list.fetching = true
  14. },
  15. GET_LIST_FAILURE (state) {
  16. state.list.fetching = false
  17. },
  18. GET_LIST_SUCCESS (state, result) {
  19. state.list.fetching = false
  20. state.list.data = result
  21. },
  22. REQUEST_NEWLIST (state) {
  23. state.list_v3.fetching = true
  24. },
  25. GET_NEWLIST_FAILURE (state) {
  26. state.list_v3.fetching = false
  27. },
  28. GET_NEWLIST_SUCCESS (state, result) {
  29. state.list_v3.fetching = false
  30. state.list_v3.data = result
  31. }
  32. }