customer.js 344 B

123456789101112131415161718192021
  1. export const state = () => ({
  2. list: {
  3. data: []
  4. },
  5. details: {
  6. data: []
  7. }
  8. })
  9. export const mutations = {
  10. REQUEST_LIST_SUCCESS (state, result) {
  11. state.list.data = result
  12. },
  13. REQUEST_DETAILS_SUCCESS (state, result) {
  14. state.details.data = result
  15. },
  16. REQUEST_DETAILS_ERROR (state) {
  17. state.details.data = []
  18. }
  19. }