Commit 911c38fb by zhanghaozhe

cookie

parent 7308cc3a
......@@ -51,8 +51,8 @@ const setCurrentUser = payload => ({
const LOGOUT = 'LOGOUT'
const logout = () => dispatch => {
jsCookie.remove('token')
jsCookie.remove('uid')
jsCookie.remove('token', {path: '/'})
jsCookie.remove('uid', {path: '/'})
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