erp 新洋电子
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.

36 lines
483 B

4 years ago
const state = {
userInfo: {},
4 years ago
token: "",
refreshToken: ""
4 years ago
}
const mutations = {
setToken(state, params) {
state.token = params;
},
setUserInfo(state, params) {
state.userInfo = params;
4 years ago
},
setRefreshToken(state, params) {
state.refreshToken = params;
4 years ago
}
}
const getters = {
token(state) {
return state.token
},
userInfo(state) {
return state.userInfo
4 years ago
},
refreshToken(state) {
return state.refreshToken;
4 years ago
}
}
export default {
state,
mutations,
getters
}