Browse Source

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

Michael Wang 5 years ago
parent
commit
3798a786b4
1 changed files with 5 additions and 1 deletions
  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;
   },