소스 검색

开启小程序的日志上报

shmily1213 4 주 전
부모
커밋
807e46cc6e
4개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 2
      src/manifest.json
  2. 0 0
      src/pagesOther/static/echarts.min.js
  3. 2 2
      src/pagesStudy/pages/exam-start/exam-start.vue
  4. 0 0
      src/pagesStudy/static/echarts.min.js

+ 9 - 2
src/manifest.json

@@ -58,7 +58,10 @@
             "subPackages" : true
         },
         "mergeVirtualHostAttributes" : true,
-        "slotMultipleInstance" : true
+        "slotMultipleInstance" : true,
+        "uniStatistics" : {
+            "enable" : true
+        }
     },
     "mp-alipay" : {
         "usingComponents" : true
@@ -70,7 +73,8 @@
         "usingComponents" : true
     },
     "uniStatistics" : {
-        "enable" : false
+        "enable" : false,
+        "version" : "2"
     },
     "vueVersion" : "3",
     "h5" : {
@@ -83,6 +87,9 @@
         "router" : {
             "mode" : "history",
             "base" : "/h5/"
+        },
+        "uniStatistics" : {
+            "enable" : true
         }
     },
     "locale" : "zh-Hans",

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/pagesOther/static/echarts.min.js


+ 2 - 2
src/pagesStudy/pages/exam-start/exam-start.vue

@@ -529,8 +529,8 @@ const loadExamData = async () => {
 const combinePaperData = async (examinee: Study.Examinee, paperType: EnumPaperType) => {
   examineeId.value = examinee.examineeId;
   report(events.ExamStartCombineData, {
-    envUser: localStorage.getItem('ie-user'),
-    envApp: localStorage.getItem('ie-app'),
+    envUser: uni.getStorageSync('ie-user'),
+    envApp: uni.getStorageSync('ie-app'),
   });
 
   if (!examinee.paperId) {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/pagesStudy/static/echarts.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.