·
history在dva 2中的变化问题
subscriptions: {
setup({ dispatch, history }) {
history.listen(({ pathname, action }) => {
if (pathname === '/' && action === 'POP') {
//TODO
}
});
},
},
在dva1中,可以获取到上图的action值,升级到dva2后,action被隐藏了
参考链接
