Browse Source

添加百度统计错误日志

Michael Wang 5 years ago
parent
commit
536d0443a5
1 changed files with 10 additions and 0 deletions
  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");
           const fs = window.nodeRequire("fs");
           applicationNames = fs.readFileSync("remoteApplication.txt", "utf-8");
           applicationNames = fs.readFileSync("remoteApplication.txt", "utf-8");
         } catch (error) {
         } catch (error) {
+          window._hmt.push([
+            "_trackEvent",
+            "登录页面",
+            "读取remoteApplication.txt出错",
+          ]);
           this.$Message.error({
           this.$Message.error({
             content: "系统检测出错,请退出程序后重试!",
             content: "系统检测出错,请退出程序后重试!",
             duration: 2 * 24 * 60 * 60,
             duration: 2 * 24 * 60 * 60,
@@ -515,6 +520,11 @@ export default {
           const fs = window.nodeRequire("fs");
           const fs = window.nodeRequire("fs");
           applicationNames = fs.readFileSync("CameraInfo.txt", "utf-8");
           applicationNames = fs.readFileSync("CameraInfo.txt", "utf-8");
         } catch (error) {
         } catch (error) {
+          window._hmt.push([
+            "_trackEvent",
+            "登录页面",
+            "读取CameraInfo.txt出错",
+          ]);
           this.$Message.error({
           this.$Message.error({
             content: "系统检测出错,请退出程序后重试!",
             content: "系统检测出错,请退出程序后重试!",
             duration: 2 * 24 * 60 * 60,
             duration: 2 * 24 * 60 * 60,