kindsData.js 360 B

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