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

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