瀏覽代碼

添加百度统计错误日志

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,