carouselInfo.js 372 B

12345678910111213141516171819
  1. export const state = () => ({
  2. infoData: {
  3. fetching: false,
  4. data: []
  5. }
  6. })
  7. export const mutations = {
  8. REQUEST_INFODATA (state) {
  9. state.infoData.fetching = true
  10. },
  11. GET_INFODATA_FAILURE (state) {
  12. state.infoData.fetching = false
  13. },
  14. GET_INFODATA_SUCCESS (state, result) {
  15. state.infoData.fetching = false
  16. state.infoData.data = result
  17. }
  18. }