Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
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
黄天晨
bh_face_counter
Commits
3de7072c
Commit
3de7072c
authored
Jul 14, 2020
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复掉线无法重连问题
parent
09d7c791
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
android
android
+1
-1
App.js
src/App.js
+2
-0
No files found.
android
@
8d1ddb78
Subproject commit
bb576ace9f2c3782561d8d3e097374f60adbddf9
Subproject commit
8d1ddb7870d12144a5ac6aaf12c6c57a2feaaace
src/App.js
View file @
3de7072c
...
...
@@ -77,10 +77,12 @@ class App extends React.Component {
listen
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
window
.
socket
.
on
(
'connect'
,
()
=>
{
window
.
socket
.
disconnected
=
false
;
window
.
socketDisconnected
=
false
;
// 重新连接
dispatch
({
type
:
'admin/setSocket'
,
socket
:
window
.
socket
.
id
});
});
window
.
socket
.
on
(
'disconnect'
,
()
=>
{
window
.
socket
.
disconnected
=
true
;
window
.
socket
.
connect
();
});
if
(
!
window
.
socket
.
hasListeners
(
'restart'
))
{
...
...
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