hotNews.js 428 B

12345678910111213141516171819
  1. // export const state = () => ({
  2. // hotNews: {
  3. // fetching: false,
  4. // data: []
  5. // }
  6. // })
  7. //
  8. // export const mutations = {
  9. // REQUEST_HOTNEWS (state) {
  10. // state.hotNews.fetching = true
  11. // },
  12. // GET_HOTNEWS_FAILURE (state) {
  13. // state.hotNews.fetching = false
  14. // },
  15. // GET_HOTNEWS_SUCCESS (state, result) {
  16. // state.hotNews.fetching = false
  17. // state.hotNews.data = result.content
  18. // }
  19. // }