Commit d3581852 authored by 徐乐's avatar 徐乐

feat: 修改

parent 66112172
...@@ -297,7 +297,7 @@ class Login { ...@@ -297,7 +297,7 @@ class Login {
.getWateWayConfig(gateWayParam) .getWateWayConfig(gateWayParam)
.then(res => { .then(res => {
// eslint-disable-next-line prettier/prettier, no-undef // eslint-disable-next-line prettier/prettier, no-undef
const hasGateWay =!res || !res.data? false: _.isString(res.data)? JSON.parse(res.data): typeof res.data === 'boolean'? res.data: false; const hasGateWay = !res || !res.data ? false : _.isString(res.data) ? JSON.parse(res.data) : typeof res.data === 'boolean' ? res.data : false;
self.globalConfig.hasGateWay = hasGateWay; self.globalConfig.hasGateWay = hasGateWay;
self.globalConfig.apiGatewayDomain = `${window.location.origin}${hasGateWay ? '/PandaCore/GateWay' : ''}`; self.globalConfig.apiGatewayDomain = `${window.location.origin}${hasGateWay ? '/PandaCore/GateWay' : ''}`;
if (hasGateWay) { if (hasGateWay) {
...@@ -1199,12 +1199,6 @@ class Login { ...@@ -1199,12 +1199,6 @@ class Login {
.getJiangXiManage({ .getJiangXiManage({
username: usr, username: usr,
password: btoa(pwd), password: btoa(pwd),
<<<<<<< src/pages/user/login/login.js
'request.preventCache': Date.now(),
})
.then(response => {
self.transformLoginHander({ token: response.data.user_token }, isRememberPWD, pwd);
=======
IsGateWay: window.globalConfig.hasGateWay, IsGateWay: window.globalConfig.hasGateWay,
'request.preventCache': Date.now(), 'request.preventCache': Date.now(),
}) })
...@@ -1229,7 +1223,6 @@ class Login { ...@@ -1229,7 +1223,6 @@ class Login {
self.events.emit('loginError', response.msg); self.events.emit('loginError', response.msg);
message.error(response.msg); message.error(response.msg);
} }
>>>>>>> src/pages/user/login/login.js
}) })
.catch(error => { .catch(error => {
self.hasTry = true; self.hasTry = true;
...@@ -1238,6 +1231,7 @@ class Login { ...@@ -1238,6 +1231,7 @@ class Login {
message.error('登录服务异常'); message.error('登录服务异常');
}); });
} }
phoneLoginFormHandler(userPhone, captcha) { phoneLoginFormHandler(userPhone, captcha) {
this.login('', '', userPhone, '', SERVICE_APP_LOGIN_MODE.phone); this.login('', '', userPhone, '', SERVICE_APP_LOGIN_MODE.phone);
} }
......
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