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.

23 lines
333 B

2 years ago
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
2 years ago
state:{
userInfo:{},
token:"",
},
2 years ago
getters:{
2 years ago
userInfo: state=>state.userInfo,
token: state=>state.token,
2 years ago
},
mutations:{
2 years ago
setUserInfo(state, val){
state.userInfo=val.userInfo
state.token=val.token
}
},
2 years ago
actions:{
}
2 years ago
})