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
049550be
Commit
049550be
authored
Feb 03, 2023
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 宿主配置容错处理
parent
0d6ade17
Pipeline
#66962
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
login.js
src/pages/user/login/login.js
+5
-3
No files found.
src/pages/user/login/login.js
View file @
049550be
...
...
@@ -188,7 +188,7 @@ class Login {
const
self
=
this
;
// eslint-disable-next-line no-undef
// 获取网站配置的同时,预先获取到mqtt配置,注册进子应用
Promise
.
all
([
Promise
.
all
Settled
([
noticeService
.
getMqttSiteCode
({
'request.preventCache'
:
Date
.
now
()
}),
getWebSiteConfig
({
client
:
self
.
globalConfig
.
client
,
...
...
@@ -197,7 +197,9 @@ class Login {
}),
])
.
then
(
results
=>
{
const
res
=
results
[
0
]
||
{};
const
promise
=
results
[
0
];
if
(
promise
.
status
===
'rejected'
)
return
results
;
const
res
=
promise
.
value
||
{};
if
(
res
&&
res
.
code
===
0
)
{
const
mqttConfig
=
{
mqtt_mess
:
{},
...
...
@@ -243,7 +245,7 @@ class Login {
return
results
;
})
.
then
(
results
=>
{
const
response
=
results
[
1
]
??
{};
const
response
=
results
[
1
]
?.
value
??
{};
const
result
=
response
&&
response
.
code
===
SERVICE_INTERFACE_SUCCESS_CODE
?
Array
.
isArray
(
response
.
data
)
...
...
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