Sfoglia il codice sorgente

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

Michael Wang 5 anni fa
parent
commit
3798a786b4
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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;
   },