自用笔记,内容可能不全
// package.json
"sunshine-track": "^1.0.0-beta.2",

// track index.js
import Track from 'sunshine-track'
const options = {
projectKey: 'test-project', // 项目的key
userId: 'digger', // 用户id
report: {
url: 'http://example.com/report', // 上报url
reportType: 'img' // 上报方式
},
switchs: { // 上报数据开关
xhr: true, // xhr请求
fetch: true, // fetch请求
error: true, // 报错
hashchange: true, // hash变化
history: true, // history变化
whitescreen: true, // 白屏
performance: true // 页面性能
},
}
// Vue
export const track = async (app) => {
app.use(Track, options)
}
// // React、Angular
// Track.init(options)











![[深度学习]--分类问题的排查错误的流程](https://img-blog.csdnimg.cn/direct/9634d13b7f4340c5ba0e2579162b97e4.png)







