Commit 3a3a955b authored by 邓晓峰's avatar 邓晓峰

fix: 修复https安全降级

parent abbe5683
Pipeline #39210 skipped with stages
......@@ -30,8 +30,8 @@ class SecurityLayout extends React.Component {
if(_.isNull(global.token) || (global.hasGateWay && _.isNull(global.access_token))) {
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0);
const client = global.client !== 'undefined' || !_.isNull(global.client) || !_.isUndefined(global.client) ? global.client: 'city';
let client = global.client || Cookies.get('city');
client = client !== 'undefined' || !_.isNull(client) || !_.isUndefined(client) ? client: 'city';
return (
<Redirect to={`/user/login?client=${client}`} />
);
......
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