diff --git a/src/models/login.js b/src/models/login.js index b5d226aa6bb893f569ba9a3b868116f34bf0e3ed..5d129e1747374f32fcf4792ba8c9ad4320765c0f 100644 --- a/src/models/login.js +++ b/src/models/login.js @@ -53,8 +53,9 @@ export default { }, }); reloadAuthorized(); + const { redirect } = getPageQuery(); // redirect - if (window.location.pathname !== '/user/login') { + if (window.location.pathname !== '/user/login' && !redirect) { yield put( routerRedux.replace({ pathname: '/user/login',