fix: 为了刷新app.js的路由,在登录退出时加上强制刷新

This commit is contained in:
yhui.yang 2017-07-20 20:52:04 +08:00
parent 2761de1ad6
commit c59421ffce

View File

@ -24,6 +24,7 @@ const loginActions = (data) => {
data: res
}
});
location.reload();
} else {
console.log('登录失败,errcode不为0');
}
@ -57,6 +58,7 @@ const logoutActions = () => {
dispatch({
type: LOGIN_OUT
})
location.reload();
}
}).catch((err) => {
console.log(err);