Commit 8d0251d5 authored by aiduck's avatar aiduck

将前部分的数据在清空前上传

parent cf9eb96d
......@@ -136,6 +136,10 @@ class Reporter {
}
// 重置数据(分条使用)
reset() {
// 将前部分的数据在清空前上传
if(this.bus.length > 0) {
this.report();
}
this.cache = [];
this.bus = [];
this.counter.reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment