a64144b44653b8dc9828f367c3c6c9516e1a8bd4.svn-base 396 B

12345678910111213141516171819202122232425
  1. import Vue from 'vue'
  2. import Vuex from 'vuex';
  3. Vue.use(Vuex)
  4. const state = {
  5. currentOrg: '',
  6. currentSystem: '',
  7. }
  8. const mutations = {
  9. changeOrg(state, orgId){
  10. state.currentOrg = orgId;
  11. },
  12. changeSystem(state, sys){
  13. state.currentSystem = sys;
  14. }
  15. }
  16. const orgStatus = new Vuex.Store({
  17. state: state,
  18. mutations: mutations
  19. })
  20. export default orgStatus;