Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
SQL_Mou
NewTruckTerminalSyetem
Commits
1d5bb2d5
Commit
1d5bb2d5
authored
Dec 01, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
671b1baa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
index.vue
src/views/MLargeScreen/index.vue
+2
-3
No files found.
src/views/MLargeScreen/index.vue
View file @
1d5bb2d5
...
@@ -276,7 +276,7 @@ export default {
...
@@ -276,7 +276,7 @@ export default {
return
return
}
else
{
}
else
{
if
(
this
.
antennaConnectorBoolean
){
if
(
this
.
antennaConnectorBoolean
){
this
.
getSerialSendIndex
(
e
.
data
)
//
this.getSerialSendIndex(e.data)
}
else
{
}
else
{
this
.
antennaConnectorBoolean
=
true
;
this
.
antennaConnectorBoolean
=
true
;
}
}
...
@@ -293,7 +293,7 @@ export default {
...
@@ -293,7 +293,7 @@ export default {
},
},
//WebSocket重连
//WebSocket重连
reconnectIndex
(){
reconnectIndex
(){
var
This
=
this
;
var
This
=
this
;
if
(
this
.
websocketIndex
.
readyState
===
1
)
{
// that.websock.readyState = 1 表示连接成功,可以立即发送信息
if
(
this
.
websocketIndex
.
readyState
===
1
)
{
// that.websock.readyState = 1 表示连接成功,可以立即发送信息
This
.
websocketonmessageIndex
();
This
.
websocketonmessageIndex
();
}
else
if
(
this
.
websocketIndex
.
readyState
===
0
)
{
// 表示正在连接,设置300ms后发送信息
}
else
if
(
this
.
websocketIndex
.
readyState
===
0
)
{
// 表示正在连接,设置300ms后发送信息
...
@@ -301,7 +301,6 @@ export default {
...
@@ -301,7 +301,6 @@ export default {
This
.
websocketonmessageIndex
();
This
.
websocketonmessageIndex
();
},
300
);
},
300
);
}
else
{
// 连接未创建或者创建失败,则重新创建连接,并设置500ms后发送信息
}
else
{
// 连接未创建或者创建失败,则重新创建连接,并设置500ms后发送信息
console
.
log
(
3
);
This
.
initWebSocketIndex
();
This
.
initWebSocketIndex
();
setTimeout
(
function
()
{
setTimeout
(
function
()
{
This
.
websocketonmessageIndex
();
This
.
websocketonmessageIndex
();
...
...
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