Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
e41f8533
Commit
e41f8533
authored
Apr 13, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息组件
parent
2556e888
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
device-manager-ui/admin/.env.stage
device-manager-ui/admin/.env.stage
+1
-1
device-manager-ui/admin/src/assets/utils/websocket.js
device-manager-ui/admin/src/assets/utils/websocket.js
+4
-0
No files found.
device-manager-ui/admin/.env.stage
View file @
e41f8533
...
...
@@ -5,5 +5,5 @@ NODE_ENV = 'production'
VUE_APP_BASE_API = http://192.168.0.98:11091/m
# websocket地址
VUE_APP_WEBSOCKET_API =192.168.0.98:1
1091/ws
VUE_APP_WEBSOCKET_API =192.168.0.98:1
8222/m
device-manager-ui/admin/src/assets/utils/websocket.js
View file @
e41f8533
...
...
@@ -32,6 +32,8 @@ const onerrorWS = () => {
Socket
.
close
()
clearInterval
(
setIntervalWesocketPush
)
console
.
log
(
'
连接失败重连中
'
)
setTimeout
(()
=>
{
},
1000
)
if
(
Socket
.
readyState
!==
3
)
{
Socket
=
null
createSocket
(
reUrl
)
...
...
@@ -80,6 +82,8 @@ export const sendWSPush = message => {
const
oncloseWS
=
()
=>
{
clearInterval
(
setIntervalWesocketPush
)
console
.
log
(
'
websocket已断开....正在尝试重连
'
)
setTimeout
(()
=>
{
},
1000
)
if
(
Socket
.
readyState
!==
2
)
{
Socket
=
null
createSocket
(
reUrl
)
...
...
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