|
@@ -35,7 +35,7 @@ export default {
|
|
|
saveCurrentUser(state, action) {
|
|
saveCurrentUser(state, action) {
|
|
|
return {
|
|
return {
|
|
|
...state,
|
|
...state,
|
|
|
- currentUser: action.payload,
|
|
|
|
|
|
|
+ currentUser: action.payload || {},
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
changeNotifyCount(state, action) {
|
|
changeNotifyCount(state, action) {
|