Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rip
Project
Project
Details
Activity
Releases
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
fanxuehui
rip
Commits
8d0251d5
Commit
8d0251d5
authored
Aug 19, 2019
by
aiduck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将前部分的数据在清空前上传
parent
cf9eb96d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
reporter.js
src/lib/reporter.js
+4
-0
No files found.
src/lib/reporter.js
View file @
8d0251d5
...
@@ -136,6 +136,10 @@ class Reporter {
...
@@ -136,6 +136,10 @@ class Reporter {
}
}
// 重置数据(分条使用)
// 重置数据(分条使用)
reset
()
{
reset
()
{
// 将前部分的数据在清空前上传
if
(
this
.
bus
.
length
>
0
)
{
this
.
report
();
}
this
.
cache
=
[];
this
.
cache
=
[];
this
.
bus
=
[];
this
.
bus
=
[];
this
.
counter
.
reset
();
this
.
counter
.
reset
();
...
...
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