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 {
)
// eslint-disable-next-line no-shadow
.then(response => {
debugger
const resultData =
response && response.code === SERVICE_INTERFACE_SUCCESS_CODE
? Array.isArray(response.data)
......@@ -788,7 +788,7 @@ class Login {
password: pwd ? sha1(pwd).toUpperCase(): '',
type: mode
}).then(res => {
debugger
if(res.code === 0) {
const data = res.data;
self.updateConfig && self.updateConfig(Object.assign({}, self.globalConfig, {
......@@ -826,7 +826,7 @@ class Login {
self.transformLoginHander(response, isRememberPWD)
})
.catch(error => {
debugger
self.hasTry = true;
self.handleLoginError();
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