news.js 773 B

123456789101112131415161718192021222324252627282930313233
  1. // export const state = () => ({
  2. // snapshot: {
  3. // fetching: false,
  4. // data: []
  5. // },
  6. // detail: {
  7. // fetching: false,
  8. // data: []
  9. // }
  10. // })
  11. //
  12. // export const mutations = {
  13. // REQUEST_SNAPSHOT (state) {
  14. // state.snapshot.fetching = true
  15. // },
  16. // GET_SNAPSHOT_FAILURE (state) {
  17. // state.snapshot.fetching = false
  18. // },
  19. // GET_SNAPSHOT_SUCCESS (state, result) {
  20. // state.snapshot.fetching = false
  21. // state.snapshot.data = result.content
  22. // },
  23. // REQUEST_DETAIL (state) {
  24. // state.detail.fetching = true
  25. // },
  26. // GET_DETAIL_FAILURE (state) {
  27. // state.detail.fetching = false
  28. // },
  29. // GET_DETAIL_SUCCESS (state, result) {
  30. // state.detail.fetching = false
  31. // state.detail.data = result
  32. // }
  33. // }