Explorar o código

JS错误统计: 具体到页面,缩小查错范围

Michael Wang %!s(int64=5) %!d(string=hai) anos
pai
achega
175dad8360
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/monitors.js

+ 1 - 1
src/utils/monitors.js

@@ -40,7 +40,7 @@ window.addEventListener("error", function(event) {
   // );
   window._hmt.push([
     "_trackEvent",
-    "全局JS错误",
+    "全局JS错误:" + window.location.pathname,
     event.message,
     event.error.stack.replace(/\n/g, "||||"),
   ]);