我正在使用redux-cookies-middleware
,在那里我可以通过只是name
和value
cookie。但是如果我需要添加path
我应该如何通过呢?
{
session: {
name: 'session' // name of the cookie in which the value of session will be synced
},
'auth.token': {
name: 'auth_token' // name of the cookie in which the value of auth.token will be synced
}
}