Commit 8a668da7 authored by 杨思琦's avatar 杨思琦

Merge branch 'master' into 'dev'

# Conflicts: # src/pages/user/login/template/project/jiangxiNew/index.less
parents 1729683c 46940680
...@@ -74,13 +74,8 @@ class Login { ...@@ -74,13 +74,8 @@ class Login {
gztransformLoginHander(response, isRememberPWD, pwd) { gztransformLoginHander(response, isRememberPWD, pwd) {
const self = this; const self = this;
const token = // eslint-disable-next-line prettier/prettier
response && const token = response && (response.token ? response.token : response.access_token !== null && response.user_token !== null ? response.user_token : '');
(response.token
? response.token
: response.access_token !== null && response.user_token !== null
? response.user_token
: '');
if (token) { if (token) {
const exp = 86400000; const exp = 86400000;
self.globalConfig.token = token; self.globalConfig.token = token;
...@@ -247,7 +242,7 @@ class Login { ...@@ -247,7 +242,7 @@ class Login {
? this.globalConfig.userInfo.fullName ? this.globalConfig.userInfo.fullName
: '', : '',
}) })
.catch(error => { }); .catch(error => {});
} }
if (window.location.host === 'panda-water.com') { if (window.location.host === 'panda-water.com') {
...@@ -261,7 +256,7 @@ class Login { ...@@ -261,7 +256,7 @@ class Login {
? this.globalConfig.userInfo.fullName ? this.globalConfig.userInfo.fullName
: '', : '',
}) })
.catch(error => { }); .catch(error => {});
} }
} }
...@@ -274,13 +269,14 @@ class Login { ...@@ -274,13 +269,14 @@ class Login {
} }
}); });
} }
// eslint-disable-next-line prettier/prettier
if (!flag && this.isSignIn && this.globalConfig.userInfo.Industries.length && this.globalConfig.userInfo.Industries.length > 1) { if (!flag && this.isSignIn && this.globalConfig.userInfo.Industries.length && this.globalConfig.userInfo.Industries.length > 1) {
this.createContext(this); this.createContext(this);
this.updateConfig && this.updateConfig(this.globalConfig); this.updateConfig && this.updateConfig(this.globalConfig);
this.history.push('/industry'); this.history.push('/industry');
return false; return false;
} }
//跳转到集成登录引导页_xule_2023-08-28 // 跳转到集成登录引导页_xule_2023-08-28
if (!flag && this.isSignIn && this.globalConfig.isIntegration >= 1) { if (!flag && this.isSignIn && this.globalConfig.isIntegration >= 1) {
this.history.push('/industry'); this.history.push('/industry');
return false; return false;
...@@ -390,7 +386,8 @@ class Login { ...@@ -390,7 +386,8 @@ class Login {
mqttConfig.mqtt_mess.TcpPort = DEFAULT_TCP_PORT; mqttConfig.mqtt_mess.TcpPort = DEFAULT_TCP_PORT;
mqttConfig.mqtt_IsSSL = `${mqttConfig.mqtt_mess.TcpIP}:${mqttConfig.mqtt_mess.TcpPort}`; mqttConfig.mqtt_IsSSL = `${mqttConfig.mqtt_mess.TcpIP}:${mqttConfig.mqtt_mess.TcpPort}`;
} }
mqttConfig.mqtt_iotIP = `${mqttConfig.mqtt_mess.TcpIP}:${mqttConfig.mqtt_mess.TcpPort ? mqttConfig.mqtt_mess.TcpPort : '443' mqttConfig.mqtt_iotIP = `${mqttConfig.mqtt_mess.TcpIP}:${
mqttConfig.mqtt_mess.TcpPort ? mqttConfig.mqtt_mess.TcpPort : '443'
}`; }`;
self.globalConfig = Object.assign(self.globalConfig, { self.globalConfig = Object.assign(self.globalConfig, {
...@@ -745,7 +742,7 @@ class Login { ...@@ -745,7 +742,7 @@ class Login {
height: '400', height: '400',
}); });
const handleMessage = function (event) { const handleMessage = function(event) {
const { origin } = event; const { origin } = event;
// Logger.log('origin', event.origin); // Logger.log('origin', event.origin);
if (origin === 'https://login.dingtalk.com') { if (origin === 'https://login.dingtalk.com') {
......
.lvchenglogin { .lvchenglogin {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
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