소스 검색

添加百度统计错误日志

Michael Wang 5 년 전
부모
커밋
536d0443a5
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      src/features/Login/Login.vue

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

@@ -460,6 +460,11 @@ export default {
           const fs = window.nodeRequire("fs");
           applicationNames = fs.readFileSync("remoteApplication.txt", "utf-8");
         } catch (error) {
+          window._hmt.push([
+            "_trackEvent",
+            "登录页面",
+            "读取remoteApplication.txt出错",
+          ]);
           this.$Message.error({
             content: "系统检测出错,请退出程序后重试!",
             duration: 2 * 24 * 60 * 60,
@@ -515,6 +520,11 @@ export default {
           const fs = window.nodeRequire("fs");
           applicationNames = fs.readFileSync("CameraInfo.txt", "utf-8");
         } catch (error) {
+          window._hmt.push([
+            "_trackEvent",
+            "登录页面",
+            "读取CameraInfo.txt出错",
+          ]);
           this.$Message.error({
             content: "系统检测出错,请退出程序后重试!",
             duration: 2 * 24 * 60 * 60,