Skip to content

Commit

Permalink
Repeated addition search (#3828)
Browse files Browse the repository at this point in the history
Close: #3791 
Close: #3835
  • Loading branch information
xiaohuoni committed Mar 25, 2019
1 parent 2230313 commit 07aa804
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/models/login.js
Expand Up @@ -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,
}),
})
);
}
},
},

Expand Down

0 comments on commit 07aa804

Please sign in to comment.