|
@@ -87,7 +87,7 @@ window.addEventListener("unhandledrejection", function (event) {
|
|
|
"_trackEvent",
|
|
|
"全局Promise未处理错误",
|
|
|
window.location.pathname.replace(/=\w*/g, "=").replace(/\d+/g, "{id}"),
|
|
|
- event.reason.message.replace(/=\w*/g, "=").replace(/\d+/g, "{id}"),
|
|
|
+ event.reason?.message?.replace(/=\w*/g, "=").replace(/\d+/g, "{id}"),
|
|
|
]);
|
|
|
}
|
|
|
});
|