index.js 385 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. Vue.use(Vuex)
  4. const store = new Vuex.Store({
  5. state: {
  6. is_mark: 1,
  7. is_send: 1,
  8. is_kg: 1,
  9. user_info: {}
  10. },
  11. mutations: {
  12. change_send(state, val) {
  13. state.is_send = val
  14. },
  15. change_market(state, val) {
  16. state.is_mark = val
  17. },
  18. change_kg(state, val) {
  19. state.is_kg = val
  20. },
  21. },
  22. actions: {
  23. }
  24. })
  25. export default store