Commit 329d9dc8 authored by 邓晓峰's avatar 邓晓峰

fix: 修复网关API

parent fcfbdf13
Pipeline #38803 skipped with stages
This diff was suppressed by a .gitattributes entry.
...@@ -254,7 +254,7 @@ class Login { ...@@ -254,7 +254,7 @@ class Login {
) )
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow
.then(response => { .then(response => {
debugger
const resultData = const resultData =
response && response.code === SERVICE_INTERFACE_SUCCESS_CODE response && response.code === SERVICE_INTERFACE_SUCCESS_CODE
? Array.isArray(response.data) ? Array.isArray(response.data)
...@@ -788,7 +788,7 @@ class Login { ...@@ -788,7 +788,7 @@ class Login {
password: pwd ? sha1(pwd).toUpperCase(): '', password: pwd ? sha1(pwd).toUpperCase(): '',
type: mode type: mode
}).then(res => { }).then(res => {
debugger
if(res.code === 0) { if(res.code === 0) {
const data = res.data; const data = res.data;
self.updateConfig && self.updateConfig(Object.assign({}, self.globalConfig, { self.updateConfig && self.updateConfig(Object.assign({}, self.globalConfig, {
...@@ -826,7 +826,7 @@ class Login { ...@@ -826,7 +826,7 @@ class Login {
self.transformLoginHander(response, isRememberPWD) self.transformLoginHander(response, isRememberPWD)
}) })
.catch(error => { .catch(error => {
debugger
self.hasTry = true; self.hasTry = true;
self.handleLoginError(); self.handleLoginError();
self.events.emit('loginError', error.message); self.events.emit('loginError', error.message);
......
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