瀏覽代碼

[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 clickHandle = (e) => { 
     const target = getTargetElementWhenClick(e);
     const target = getTargetElementWhenClick(e);
     const logData = clickDataMap.get(target?.denetClickLogkey);
     const logData = clickDataMap.get(target?.denetClickLogkey);
-    return  logData && reportLog({
+    return logData && reportLog({
+        businessType: Report.businessType.buttonClick,
         ...logData
         ...logData
     })
     })
 }
 }

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

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