Commit 911c38fb by zhanghaozhe

cookie

parent 7308cc3a
...@@ -51,8 +51,8 @@ const setCurrentUser = payload => ({ ...@@ -51,8 +51,8 @@ const setCurrentUser = payload => ({
const LOGOUT = 'LOGOUT' const LOGOUT = 'LOGOUT'
const logout = () => dispatch => { const logout = () => dispatch => {
jsCookie.remove('token') jsCookie.remove('token', {path: '/'})
jsCookie.remove('uid') jsCookie.remove('uid', {path: '/'})
dispatch(setCurrentUser({})) dispatch(setCurrentUser({}))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment