|
|
@ -30,6 +30,8 @@ export class ErrorMonitoring
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let stackSet = new Set();
|
|
|
|
|
|
|
|
|
|
|
|
export async function ReportError(stack: any, msg: string = "未捕获的错误!")
|
|
|
|
export async function ReportError(stack: any, msg: string = "未捕获的错误!")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
@ -42,6 +44,9 @@ export async function ReportError(stack: any, msg: string = "未捕获的错误!
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (stackSet.has(stack)) return;
|
|
|
|
|
|
|
|
stackSet.add(stack);
|
|
|
|
|
|
|
|
|
|
|
|
let userName = localStorage.getItem(StoreageKeys.UserName);
|
|
|
|
let userName = localStorage.getItem(StoreageKeys.UserName);
|
|
|
|
let userPhone = localStorage.getItem(StoreageKeys.UserPhone);
|
|
|
|
let userPhone = localStorage.getItem(StoreageKeys.UserPhone);
|
|
|
|
|
|
|
|
|
|
|
|