|
@@ -59,6 +59,7 @@ export default function useErrorLog() {
|
|
|
}
|
|
|
|
|
|
const _uploadErrorLog = async (event: any) => {
|
|
|
+ console.log('onerror message -----------------')
|
|
|
try {
|
|
|
/*
|
|
|
日志上报:1.手机号、应用端 iOS|安卓 App类型(老师端|学生端|web)、App版本、系统信息(系统版本|web userAgent)、错误信息(什么位置出现,错误内容) 错误时间 上报类型(错误、埋点)
|
|
@@ -72,7 +73,7 @@ export default function useErrorLog() {
|
|
|
);
|
|
|
|
|
|
const whiteIp = ['online.lexiaoya.cn', 'test.lexiaoya.cn', 'dev.lexiaoya.cn']
|
|
|
- console.log(window.location.hash, index, 'errorLog')
|
|
|
+ console.log(window.location.host, index, 'errorLog')
|
|
|
if (!whiteIp.includes(window.location.host)) {
|
|
|
return
|
|
|
}
|