mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
feat: 添加定期更新检查功能并优化相关逻辑;调整 ESLint 配置以放宽类型检查规则
This commit is contained in:
@@ -48,7 +48,7 @@ export function InitVTsuru() {
|
||||
}
|
||||
|
||||
async function InitOther() {
|
||||
if (process.env.NODE_ENV !== 'development' && !window.$route.path.startsWith('/obs')) {
|
||||
if (import.meta.env.MODE !== 'development' && !window.$route.path.startsWith('/obs')) {
|
||||
const mod = await import('@hyperdx/browser')
|
||||
const HyperDX = (mod as any).default ?? mod
|
||||
HyperDX.init({
|
||||
@@ -59,7 +59,7 @@ async function InitOther() {
|
||||
advancedNetworkCapture: true, // Capture full HTTP request/response headers and bodies (default false)
|
||||
ignoreUrls: [/localhost/i],
|
||||
})
|
||||
// 将实例挂到窗口,便于后续设置全局属性(可选)
|
||||
// 将实例挂到窗口,便于后续设置全局属性(可选)
|
||||
;(window as any).__HyperDX__ = HyperDX
|
||||
}
|
||||
// 加载其他数据
|
||||
|
||||
Reference in New Issue
Block a user