diff --git a/src/models/user.js b/src/models/user.js index b45afc3aa2655536e6d5360a64d116964decfdc1..214a7ca12f750f49e4688a6fc99a41bb5a4188aa 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -35,7 +35,7 @@ export default { saveCurrentUser(state, action) { return { ...state, - currentUser: action.payload, + currentUser: action.payload || {}, }; }, changeNotifyCount(state, action) {