ZaiZai 1 an în urmă
părinte
comite
4816cbd93c
2 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 3 3
      src/main.js
  2. 3 3
      src/store/modules/user.js

+ 3 - 3
src/main.js

@@ -3,7 +3,7 @@ import './styles/app/tailwind.scss'
 import { createApp } from 'vue'
 import setupPinia from './store/init'
 import router, { setupRouter } from './router'
-import * as Sentry from '@sentry/vue'
+//import * as Sentry from '@sentry/vue'
 import App from './App.vue'
 
 //饿了么UI
@@ -29,7 +29,7 @@ async function bootstrap() {
     const app = createApp(App)
 
     //目前在测试阶段,发正式版前,请注释 Sentry 监控初始化
-    Sentry.init({
+    /*Sentry.init({
         app,
         dsn: 'http://054a995ed4461324b75ac84cf37b9fb8@192.168.0.109:5501/2',
         integrations: [
@@ -44,7 +44,7 @@ async function bootstrap() {
         tracesSampleRate: 1.0,
         replaysSessionSampleRate: 0.1,
         replaysOnErrorSampleRate: 1.0,
-    })
+    })*/
 
     // 挂载状态管理
     app.use(setupPinia)

+ 3 - 3
src/store/modules/user.js

@@ -9,7 +9,7 @@ import { logout, refreshToken, userLogin } from '~api/user'
 import { userConfigInfo, userConfigSave } from '~api/other'
 import { ArrToOneObj, arrIndex, getArrValue, getObjValue } from 'js-fast-way'
 import { useOsTheme } from 'hc-vue3-ui'
-import * as Sentry from '@sentry/vue'
+//import * as Sentry from '@sentry/vue'
 
 //初始变量
 const store = useAppStore(pinia)
@@ -22,10 +22,10 @@ export const useAppLogin = async (form) => {
         store.setRefreshTokenVal(res['refresh_token'])
         store.setTenantId(res['tenant_id'])
         store.setUserInfo(res)
-        Sentry.setUser({
+        /*Sentry.setUser({
             id: res['user_id'],
             username: res['real_name'],
-        })
+        })*/
         const routerRes = await setRouterData()
         if (!routerRes) {
             return Promise.reject({ msg: '路由异常' })