瀏覽代碼

[edit][sentry]

zhangwei 2 年之前
父節點
當前提交
1ef0019e22
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/uilts/sentry.js

+ 1 - 5
src/uilts/sentry.js

@@ -4,10 +4,6 @@ import { appVersionCode } from '@/http/configAPI.js'
 
 class CoutomSentry {
     initVue(app) {
-        if (process.env.NODE_ENV != 'production') {
-            return
-        }
-
         Sentry.init({
             app,
             dsn: "https://529fc1c357b248eda7473c119093f5db@sentry.piaoquantv.com/5",
@@ -21,7 +17,7 @@ class CoutomSentry {
             // of transactions for performance monitoring.
             // We recommend adjusting this value in production
             tracesSampleRate: 1.0,
-            release: appVersionCode,
+            release: process.env.NODE_ENV + appVersionCode,
             logErrors: true
         });
     }