Commit ee73d970 by zhanghaozhe

Merge branch 'passport' into pre

parents 1bb7c158 911c38fb
...@@ -52,8 +52,8 @@ const setCurrentUser = payload => ({ ...@@ -52,8 +52,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