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
d3581852
Commit
d3581852
authored
Aug 30, 2023
by
徐乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改
parent
66112172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
login.js
src/pages/user/login/login.js
+2
-8
No files found.
src/pages/user/login/login.js
View file @
d3581852
...
...
@@ -297,7 +297,7 @@ class Login {
.
getWateWayConfig
(
gateWayParam
)
.
then
(
res
=>
{
// 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
.
apiGatewayDomain
=
`
${
window
.
location
.
origin
}${
hasGateWay
?
'/PandaCore/GateWay'
:
''
}
`
;
if
(
hasGateWay
)
{
...
...
@@ -1199,12 +1199,6 @@ class Login {
.
getJiangXiManage
({
username
:
usr
,
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
,
'request.preventCache'
:
Date
.
now
(),
})
...
...
@@ -1229,7 +1223,6 @@ class Login {
self
.
events
.
emit
(
'loginError'
,
response
.
msg
);
message
.
error
(
response
.
msg
);
}
>>>>>>>
src
/
pages
/
user
/
login
/
login
.
js
})
.
catch
(
error
=>
{
self
.
hasTry
=
true
;
...
...
@@ -1238,6 +1231,7 @@ class Login {
message
.
error
(
'登录服务异常'
);
});
}
phoneLoginFormHandler
(
userPhone
,
captcha
)
{
this
.
login
(
''
,
''
,
userPhone
,
''
,
SERVICE_APP_LOGIN_MODE
.
phone
);
}
...
...
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