watchman system vue sdk
npm install watchman-vue-sdk
import Vue from 'vue'
import WatchmanVueSDK frin 'watchman-vue-sdk'
const watchman = WatchmanVueSDK.init({
key: '************', // 项目key
url: 'api.example.com', // 错误上报接口
isReport: process.env.NODE_ENV === 'production' // 是否上报
})
app.use(watchman)