updatePort.js 357 B

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