Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM-15
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
template admin
JM-15
Commits
29216807
Commit
29216807
authored
Nov 16, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 断线重连 时间异常
parent
9d041721
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
play.component.ts
src/app/play/play.component.ts
+5
-1
No files found.
src/app/play/play.component.ts
View file @
29216807
...
@@ -881,6 +881,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -881,6 +881,9 @@ export class PlayComponent implements OnInit, OnDestroy {
}
else
{
}
else
{
const
resultData
=
this
.
getResultData
();
const
resultData
=
this
.
getResultData
();
this
.
userResultData
=
resultData
;
this
.
userResultData
=
resultData
;
const
duration
=
new
Date
().
getTime
()
-
this
.
localStartTime
;
this
.
setStoreData
(
'
duration
'
,
duration
);
this
.
setStoreData
(
'
resultData
'
,
resultData
);
this
.
setStoreData
(
'
resultData
'
,
resultData
);
}
}
this
.
sendResult
();
this
.
sendResult
();
...
@@ -2367,9 +2370,10 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -2367,9 +2370,10 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
const
resultData
=
this
.
getStoreData
(
'
resultData
'
);
const
resultData
=
this
.
getStoreData
(
'
resultData
'
);
const
duration
=
this
.
getStoreData
(
'
duration
'
);
const
resultPic
=
this
.
getStoreData
(
'
resultPic
'
)
||
''
;
const
resultPic
=
this
.
getStoreData
(
'
resultPic
'
)
||
''
;
const
duration
=
new
Date
().
getTime
()
-
this
.
localStartTime
;
//
const duration = new Date().getTime() - this.localStartTime;
c
.
sendAnswer
({
resultData
,
resultPic
,
duration
});
c
.
sendAnswer
({
resultData
,
resultPic
,
duration
});
// }
// }
...
...
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