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
571ab0bb
Commit
571ab0bb
authored
Mar 06, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mqtt_site_code增加
parent
bc8ce09a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
notice.js
src/layouts/AppLayout/notifier/notice.js
+1
-1
login.js
src/pages/user/login/login.js
+1
-1
No files found.
src/layouts/AppLayout/notifier/notice.js
View file @
571ab0bb
...
...
@@ -237,7 +237,7 @@ class Notifier {
if
(
res
.
data
[
0
])
{
const
data
=
res
.
data
[
0
];
mqttConfig
.
mqtt_IsSSL
=
self
.
_siteConfig
.
IsSSL
=
data
.
IsSSL
?
data
.
IsSSL
:
false
;
mqttConfig
.
mqtt_mess
.
site_code
=
self
.
_siteConfig
.
site_code
=
data
.
SiteCode
||
self
.
_siteConfig
.
site_code
;
mqttConfig
.
mqtt_mess
.
site_code
=
mqttConfig
.
mqtt_site_code
=
self
.
_siteConfig
.
site_code
=
data
.
SiteCode
||
self
.
_siteConfig
.
site_code
;
mqttConfig
.
mqtt_mess
.
TcpIP
=
self
.
_siteConfig
.
TcpIP
=
data
.
TcpIP
;
mqttConfig
.
mqtt_mess
.
TcpPort
=
self
.
_siteConfig
.
TcpPort
=
data
.
TcpPort
?
parseInt
(
data
.
TcpPort
)
:
8083
;
mqttConfig
.
mqtt_mess
.
MessageLevel
=
self
.
_siteConfig
.
MessageLevel
=
data
.
MessageLevel
...
...
src/pages/user/login/login.js
View file @
571ab0bb
...
...
@@ -322,7 +322,7 @@ class Login {
const
data
=
res
.
data
[
0
];
mqttConfig
.
ipConfig
=
data
;
mqttConfig
.
mqtt_IsSSL
=
data
.
IsSSL
?
data
.
IsSSL
:
false
;
mqttConfig
.
mqtt_mess
.
site_code
=
data
.
SiteCode
||
self
.
globalConfig
.
userInfo
.
site
;
mqttConfig
.
mqtt_mess
.
site_code
=
mqttConfig
.
mqtt_site_code
=
data
.
SiteCode
||
self
.
globalConfig
.
userInfo
.
site
;
mqttConfig
.
mqtt_mess
.
TcpIP
=
data
.
TcpIP
;
// eslint-disable-next-line radix
mqttConfig
.
mqtt_mess
.
TcpPort
=
data
.
TcpPort
?
parseInt
(
data
.
TcpPort
)
:
8083
;
...
...
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