Commit e7a52fa6 authored by 崔佳豪's avatar 崔佳豪

fix: 退出登录不携带额外参数

parent a8c4fa08
Pipeline #48420 skipped with stages
......@@ -50,9 +50,9 @@ class SecurityLayout extends React.Component {
if (!isLogin && window.location.pathname !== '/civbase/user/login') {
const { query = {}, search, pathname } = history.location;
const { redirect } = query;
const queryString = stringify({
redirect: pathname + search,
});
// const queryString = stringify({
// redirect: pathname + search,
// });
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0);
let client = global.client || Cookies.get('city');
client = client !== 'undefined' && !_.isNull(client) && !_.isUndefined(client) ? client : 'city';
......@@ -60,7 +60,7 @@ class SecurityLayout extends React.Component {
generateType = !_.isNull(generateType) && !_.isUndefined(generateType) && generateType !== 'undefined' ? `&generateType=${generateType}` : '';
return (
<Redirect
to={`/user/login?client=${client}${generateType}&${queryString}`}
to={`/user/login?client=${client}${generateType}`}
/>
);
}
......
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