config.js 394 B

12345678910111213141516171819202122232425262728
  1. import miscApi from '../../api/misc';
  2. // initial state
  3. const state = {
  4. name: null,
  5. version: null,
  6. mode: null,
  7. };
  8. // getters
  9. const getters = {};
  10. // actions
  11. const actions = {};
  12. // mutations
  13. const mutations = {
  14. setConfig(state, value) {
  15. Object.assign(state, value);
  16. },
  17. };
  18. export default {
  19. namespaced: true,
  20. state,
  21. getters,
  22. actions,
  23. mutations
  24. };