Explorar el Código

统计控制台打开时,避免丢失domain+key

Michael Wang hace 5 años
padre
commit
3798a786b4
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/features/Login/Login.vue

+ 5 - 1
src/features/Login/Login.vue

@@ -133,7 +133,11 @@ Object.defineProperty(element, "id", {
       "_trackEvent",
       "登录页面",
       `控制台打开`,
-      window.location.href,
+      window.location.href +
+        "|||" +
+        localStorage.getItem("domain") +
+        "|||" +
+        localStorage.getItem("key"),
     ]);
     return null;
   },