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

Repeated addition search (#3828)

Close: #3791 
Close: #3835
parent 22303139
......@@ -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,
}),
})
);
}
},
},
......
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