messageBoard.js 395 B

123456789101112131415161718
  1. export const state = () => ({
  2. information: {
  3. fetching: false,
  4. data: []
  5. }
  6. })
  7. export const mutations = {
  8. REQUEST_INFORMATION (state) {
  9. state.information.fetching = true
  10. },
  11. GET_INFORMATION_FAILURE (state) {
  12. state.information.fetching = false
  13. },
  14. GET_INFORMATION_SUCCESS (state, result) {
  15. state.information.fetching = false
  16. state.information.data = result
  17. }
  18. }