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
998c22ec
Commit
998c22ec
authored
Jul 11, 2020
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TCP继电器控制语音提示
parent
c46c0e70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
App.js
src/App.js
+3
-2
No files found.
src/App.js
View file @
998c22ec
...
...
@@ -119,8 +119,9 @@ class App extends React.Component {
});
}
if
(
!
window
.
socket
.
hasListeners
(
'tcpRelay'
))
{
window
.
socket
.
on
(
'tcpRelay'
,
({
ip
,
port
,
route
,
status
})
=>
{
TcpRelay
.
toggle
(
ip
,
port
,
route
,
status
);
window
.
socket
.
on
(
'tcpRelay'
,
async
({
ip
,
port
,
route
,
status
})
=>
{
const
ret
=
await
TcpRelay
.
toggle
(
ip
,
port
,
route
,
status
);
Speech
.
speak
(
`远程继电器触发
${
ret
?
'成功'
:
'失败'
}
`
);
});
}
};
...
...
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