| 12345678910111213141516171819202122232425 |
- import Vue from 'vue'
- import Vuex from 'vuex';
- Vue.use(Vuex)
- const state = {
- currentOrg: '',
- currentSystem: '',
- }
- const mutations = {
- changeOrg(state, orgId){
- state.currentOrg = orgId;
- },
- changeSystem(state, sys){
- state.currentSystem = sys;
- }
- }
- const orgStatus = new Vuex.Store({
- state: state,
- mutations: mutations
- })
- export default orgStatus;
|