Эх сурвалжийг харах

Merge branch 'main' into feature/v1.0.55

lianbingjie 1 жил өмнө
parent
commit
e0d13d1122

+ 1 - 1
apps/bigmember_pc/src/main.js

@@ -59,7 +59,7 @@ const app = easySubAppRegister(
       fixGetComputedStyle()
 
       // Sentry 异常监控
-      initSentry()
+      initSentry(Vue)
     }
   }
 )

+ 7 - 2
apps/bigmember_pc/src/sentry.js

@@ -1,12 +1,17 @@
 import * as Sentry from '@sentry/vue'
 
-export function initSentry() {
+export function initSentry(Vue) {
   if (!import.meta.env.DEV) {
     Sentry.init({
+      Vue,
       dsn: 'https://1009883edc154953bec82b5e9ec88bce@jysentry.jydev.jianyu360.cn/7',
       release: import.meta.env.VITE_APP_GIT_BRANCH,
       environment: 'produce',
-      sampleRate: 0.1
+      sampleRate: 1,
+      beforeSend: (event) => {
+        event.user.email = localStorage.getItem('BIGMEMBER_PC')
+        return event
+      }
     })
     Sentry.setTag('url', location.href)
     const id = document.cookie.match(/(^|;)\s*ud_safe\s*=\s*([^;]+)/)

+ 0 - 1
apps/bigmember_pc/vite.config.js

@@ -22,7 +22,6 @@ const baseCDN = {
     'https://cdn-common.jianyu360.com/cdn/lib/echarts/4.8.0/echarts.min.js',
     'https://cdn-common.jianyu360.com/cdn/lib/v-charts/1.19.0/index.min.js',
     // 'https://cdn-common.jianyu360.com/cdn/lib/jquery/3.5.1/jquery.min.js', // 标签上需要添加ignore
-    'https://res.wx.qq.com/open/js/jweixin-1.6.0.js'
   ]
 }