feat: 渲染器增加 sentry 上报错误
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BlockSchema } from '@vtj/core';
|
||||
import type { BlockSchema } from '@vtj/core';
|
||||
|
||||
import instance from './instance';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user