feat: 渲染器增加 sentry 上报错误

This commit is contained in:
wangxuefeng
2025-03-12 11:48:55 +08:00
parent 898ab51736
commit e677d4fc9e
16 changed files with 562 additions and 587 deletions

View File

@@ -1,5 +1,6 @@
import { createApp } from 'vue';
import * as Sentry from '@sentry/vue';
import { VueQueryPlugin } from '@tanstack/vue-query';
import { IconsPlugin } from '@vtj/icons';
import * as VtjUI from '@vtj/ui';
@@ -7,13 +8,17 @@ import ElementPlus from 'element-plus';
import App from './App.vue';
import '@sy/web-vitals';
// import '@sy/web-vitals';
import 'element-plus/dist/index.css';
import '@vtj/ui/dist/style.css';
const app = createApp(App);
Sentry.init({
app,
dsn: 'https://5bcf1344794fea64fc5e5fe7da4821c1@o4508962650783744.ingest.de.sentry.io/4508962653143120',
});
// 批量注册组件
Object.entries(VtjUI).forEach(([name, component]) => {
app.component(name, component);

View File

@@ -1,4 +1,4 @@
import { BlockSchema } from '@vtj/core';
import type { BlockSchema } from '@vtj/core';
import instance from './instance';