Browse Source

检测学生端版本分布

Michael Wang 3 years ago
parent
commit
267996c5f2
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/features/Login/Login.vue

+ 9 - 0
src/features/Login/Login.vue

@@ -350,6 +350,15 @@ export default {
     }
     }
     // 上传本机加密日志
     // 上传本机加密日志
     this.uploadLogInterval = setInterval(() => createEncryptLog(), 5 * 1000);
     this.uploadLogInterval = setInterval(() => createEncryptLog(), 5 * 1000);
+    if (isElectron()) {
+      createLog({
+        currentPage: "登录页面",
+        action: "versonstats",
+        packageVersion: "ua-" + UA.getBrowser().version,
+        file: process.env.PORTABLE_EXECUTABLE_FILE,
+        uaGood: "uagood-" + (process.env.PORTABLE_EXECUTABLE_FILE ? 1 : 0),
+      });
+    }
   },
   },
   async created() {
   async created() {
     createLog({
     createLog({