Unverified Commit 07aa8044 authored by 陈小聪's avatar 陈小聪 Committed by GitHub

Repeated addition search (#3828)

Close: #3791 
Close: #3835
parent 22303139
...@@ -53,6 +53,8 @@ export default { ...@@ -53,6 +53,8 @@ export default {
}, },
}); });
reloadAuthorized(); reloadAuthorized();
// redirect
if (window.location.pathname !== '/user/login') {
yield put( yield put(
routerRedux.replace({ routerRedux.replace({
pathname: '/user/login', pathname: '/user/login',
...@@ -61,6 +63,7 @@ export default { ...@@ -61,6 +63,7 @@ export default {
}), }),
}) })
); );
}
}, },
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment