0.0.1 • Published 2 years ago

@apply-monitor/monitor v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

apply-monitor/monitor

安装方式

使用 npm:

 npm install @apply-monitor/monitor --save-dev

使用 yarn:

 yarn add @apply-monitor/monitor --dev

使用方式

import Monitor from '@apply-monitor/monitor'

new Monitor({
  url: '项目上报地址',
  project: '项目名称',
  version: '版本',
})

配置项

NameDescriptiontyepdefaultisRequired
url上传 urlstring''true
project项目名称string''true
proSub子项目名称string''false
version项目版本string''true
isCollectErr是否收集错误booleantruefalse
isCollectPer是否收集用户行为booleantruefalse
isCollectBehavior是否收集性能booleantruefalse
sendWay上传方式string'sendBeacon'false
isVue开启 vue 路由跳转传入 Vuebooleanfalsefalse
vue是否开启 vue 错误收集booleanfalsefalse
isVueJump是否开启监听 vue 路由跳转收集booleanfalsefalse
router开启 vue 路由跳转传入路由routernullfalse
0.0.1

2 years ago

0.0.0

2 years ago