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
         })
     }