Skip to content

Commit 2760d84

Browse files
author
soliury
committed
logout will sync reducer
1 parent eeeea3f commit 2760d84

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/actions/user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ export const getUserInfo = createAction(types.GET_USER_INFO, async(loginName)=>
7070

7171

7272
export const logout = function () {
73-
userService.storage.clearUser();
7473
return {
75-
type: types.LOGOUT
74+
type: types.LOGOUT,
75+
meta: {
76+
sync: 'user'
77+
}
7678
}
7779
};
7880

0 commit comments

Comments
 (0)