You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
415 B

import httpRequest from '../api/httpRequest.js'
export default {
state: {
groups: [],
activeIndex: -1,
},
mutations: {
initGroupStore(state) {
httpRequest({
url: '/api/group/list',
method: 'get'
}).then((groups) => {
this.commit("setGroups",groups);
})
},
setGroups(state,groups){
state.groups = groups;
},
activeGroup(state,index){
state.activeIndex = index;
}
}
}