Commit 8637940b authored by 邓晓峰's avatar 邓晓峰

fix: 修复client为undefined

parent b51be160
Pipeline #39109 passed with stages
in 13 minutes 42 seconds
...@@ -31,7 +31,7 @@ class SecurityLayout extends React.Component { ...@@ -31,7 +31,7 @@ class SecurityLayout extends React.Component {
if(_.isNull(global.token) || (global.hasGateWay && _.isNull(global.access_token))) { if(_.isNull(global.token) || (global.hasGateWay && _.isNull(global.access_token))) {
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0); this.props.updateCurrentIndex && this.props.updateCurrentIndex(0);
window.share && window.share.event && window.share.event.emit('initConfig'); window.share && window.share.event && window.share.event.emit('initConfig');
const client = global.client ? global.client: 'city'; const client = _.isNull(global.client) || _.isUndefined(global.client) ? global.client: 'city';
return ( return (
<Redirect to={`/user/login?client=${client}`} /> <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