test(custom): 去除监控测试代码

This commit is contained in:
2023-11-21 18:14:20 +08:00
parent ad8705eb42
commit efb6a5ec38
3 changed files with 2 additions and 6 deletions

View File

@@ -26,4 +26,4 @@ VITE_GAME_API='https://game.wanzhuanyongcheng.cn'
VITE_MER_LOGIN_URL='//test.wanzhuanyongcheng.cn/static/mer/#/login'
# 是否启用监控
VITE_SENTRY=true
VITE_SENTRY=false

View File

@@ -18,7 +18,7 @@ export async function setupRouter(app) {
if (import.meta.env.VITE_SENTRY) {
Sentry.init({
app,
dsn: 'https://a0b6f167271366f40f05e238d63a6fa0@w.huakk.top/11',
dsn: 'https://1c158d5f832eef396e69447959d902d2@w.huakk.top/12',
integrations: [
new Sentry.BrowserTracing({
tracePropagationTargets: ['localhost', /^https:\/\/w\.huakk\.top\/api/],

View File

@@ -55,8 +55,4 @@
import { useUserStore } from '@/store'
const userStore = useUserStore()
// eslint-disable-next-line no-undef,no-unreachable
mytest()
throw new Error('error')
</script>