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
152a8893
Commit
152a8893
authored
Aug 06, 2019
by
aiduck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乱
parent
6ea0ec1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
monitor.js
src/lib/monitor.js
+1
-0
reporter.js
src/lib/reporter.js
+1
-6
No files found.
src/lib/monitor.js
View file @
152a8893
...
...
@@ -20,6 +20,7 @@ class Monitor {
log
,
},
});
this
.
reset
();
this
.
record
();
}
else
{
this
.
reset
({
userIdentifier
});
...
...
src/lib/reporter.js
View file @
152a8893
...
...
@@ -10,17 +10,12 @@ class Reporter {
userIdentifier
:
""
,
path
:
""
,
};
config
=
{
env
:
"prod"
,
log
:
false
,
};
environmentUrl
=
""
;
// 环境配置
isUploading
=
false
;
// 是否在上传cdn
bus
=
[];
// 上传分片数据
counter
=
new
Counter
();
// 计数器和recordKey一起重置
cache
=
[];
// cdn数据缓存
init
({
recordKey
,
env
,
log
,
...
baseInfo
})
{
this
.
recordKey
=
recordKey
;
init
({
env
,
...
baseInfo
})
{
this
.
baseInfo
=
baseInfo
;
this
.
setEnvironment
(
env
);
}
...
...
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