loadProfiles state payload state profiles payload loadProfileOnce stat

1
2
3
4
5
6
7
8
loadProfiles: (state, payload) => {
state.profiles = payload
},
loadProfileOnce: (state, payload) => {
// state.oneProfile = payload
state.oneProfile = Object.assign({}, state.oneProfile, payload)
console.log(state.oneProfile)
}