From 422c7207137c3bb4f6e10ce41b451eb8f76a0d6a Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 24 Jun 2018 15:07:01 +0800 Subject: [PATCH] fix falsy currentUser --- src/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/user.js b/src/models/user.js index b45afc3a..214a7ca1 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) { -- GitLab