소스 검색

[add] common params

jihuaqiang 2 년 전
부모
커밋
eb6a41382c
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      src/log-center/autoLog/click.js
  2. 2 1
      src/log-center/autoLog/show.js

+ 2 - 1
src/log-center/autoLog/click.js

@@ -8,7 +8,8 @@ let clickDataMap = new Map();
 const clickHandle = (e) => { 
     const target = getTargetElementWhenClick(e);
     const logData = clickDataMap.get(target?.denetClickLogkey);
-    return  logData && reportLog({
+    return logData && reportLog({
+        businessType: Report.businessType.buttonClick,
         ...logData
     })
 }

+ 2 - 1
src/log-center/autoLog/show.js

@@ -39,7 +39,8 @@ class ShowLogObserver {
 
     report(el) { 
         const logData = this.showLogMap.get(el?.target?.denetShowLogkey);
-        return  logData && reportLog({
+        return logData && reportLog({
+            businessType: Report.businessType.pageView,
             ...logData
         })
     }