|
|
@@ -53,14 +53,17 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
reloadAuthorized();
|
|
|
- yield put(
|
|
|
- routerRedux.replace({
|
|
|
- pathname: '/user/login',
|
|
|
- search: stringify({
|
|
|
- redirect: window.location.href,
|
|
|
- }),
|
|
|
- })
|
|
|
- );
|
|
|
+ // redirect
|
|
|
+ if (window.location.pathname !== '/user/login') {
|
|
|
+ yield put(
|
|
|
+ routerRedux.replace({
|
|
|
+ pathname: '/user/login',
|
|
|
+ search: stringify({
|
|
|
+ redirect: window.location.href,
|
|
|
+ }),
|
|
|
+ })
|
|
|
+ );
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
|