Browse Source

添加百度统计错误日志

Michael Wang 5 năm trước cách đây
mục cha
commit
536d0443a5
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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,