Hello 大家好,欢迎使用前端监控和埋点。
Taro监控探针可以设置备用地址
require("./monitor.min")
Taro.setStorageSync('wmUserInfo', JSON.stringify({userId: "webfunny1", userTag: "A", projectVersion: "1.0.4", env: "pro"}))
// Taro.webfunny({}, "Taro")
if (Taro.wfUtils) {
setInterval(() => {
const uploadErrorCount = Taro.wfUtils.getWfCookie("uploadErrorCount") * 1
if (uploadErrorCount >= 3) {
Taro.setStorageSync("webfunnyDomain", "localhost:9011")
} else {
Taro.setStorageSync("webfunnyDomain", "")
}
}, 2000)
}