diff --git a/tenant-platform/src/router/index.ts b/tenant-platform/src/router/index.ts index f36c012..75ffae7 100644 --- a/tenant-platform/src/router/index.ts +++ b/tenant-platform/src/router/index.ts @@ -101,6 +101,10 @@ const router = createRouter({ path: 'services/license/:appKey?', component: () => import('@/views/license/LicenseManagementView.vue'), }, + { + path: 'services/bugcollect/:appKey?', + component: () => import('@/views/bug-collect/BugCollectOverview.vue'), + }, { path: 'system-logs', component: () => import('@/views/system/ServerLogsView.vue'), diff --git a/tenant-platform/src/views/apps/AppDetailView.vue b/tenant-platform/src/views/apps/AppDetailView.vue index 8a3946a..47ae931 100644 --- a/tenant-platform/src/views/apps/AppDetailView.vue +++ b/tenant-platform/src/views/apps/AppDetailView.vue @@ -172,6 +172,45 @@ + + 崩溃收集 + + + + + {{ serviceLabel('BUG_COLLECT') }} + {{ serviceHelp('BUG_COLLECT') }} + + onToggleService('BUG_COLLECT', val)" + /> + + + + {{ isServiceEnabled('BUG_COLLECT') ? '已开通' : '未开通' }} + + + 采集 App 崩溃、异常与自定义事件,支持漏斗分析和 Webhook 告警。 + + + + + + 崩溃概览 → + + + 错误列表 → + + + + 申请开通 + + + + + + @@ -484,7 +523,13 @@ function isServiceEnabled(svcType: string) { } function serviceLabel(type: string) { - return { IM: '即时通讯 (IM)', PUSH: '离线推送', UPDATE: '版本管理', LICENSE: '授权管理' }[type] ?? type + return { + IM: '即时通讯 (IM)', + PUSH: '离线推送', + UPDATE: '版本管理', + LICENSE: '授权管理', + BUG_COLLECT: '崩溃收集 (BugCollect)', + }[type] ?? type } function serviceHelp(type: string) { @@ -493,6 +538,7 @@ function serviceHelp(type: string) { PUSH: '一次开通后,可在推送配置页按厂商维护配置。', UPDATE: '一次开通后,版本管理页独立管理版本上传、商店配置和灰度发布。', LICENSE: '管理 PAD 设备的授权注册与验证。', + BUG_COLLECT: '采集 App 崩溃与自定义事件,支持漏斗分析和 Webhook 告警。', }[type] ?? '' } diff --git a/tenant-platform/src/views/layout/MainLayout.vue b/tenant-platform/src/views/layout/MainLayout.vue index 76bb75d..a54bbbc 100644 --- a/tenant-platform/src/views/layout/MainLayout.vue +++ b/tenant-platform/src/views/layout/MainLayout.vue @@ -21,6 +21,7 @@ 离线推送 版本管理 授权管理 + 崩溃收集 安全中心 @@ -71,6 +72,7 @@ 离线推送 版本管理 授权管理 + 崩溃收集 安全中心