Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
329d9dc8
Commit
329d9dc8
authored
Nov 25, 2021
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复网关API
parent
fcfbdf13
Pipeline
#38803
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
civbase.zip
civbase.zip
+0
-0
login.js
src/pages/user/login/login.js
+3
-3
No files found.
civbase.zip
deleted
100644 → 0
View file @
fcfbdf13
This diff was suppressed by a .gitattributes entry.
src/pages/user/login/login.js
View file @
329d9dc8
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment