feat(web): 新增导航组合式函数,更新应用外壳组合式函数,增强前端路由和状态管理

This commit is contained in:
caoxiaozhu
2026-05-15 09:36:32 +00:00
parent 3a3000cacd
commit 891cecb4a8
2 changed files with 19 additions and 1 deletions

View File

@@ -124,6 +124,7 @@ export function useAppShell() {
})
const detailMode = computed(() => route.name === 'app-request-detail')
const logDetailMode = computed(() => route.name === 'app-log-detail')
const detailAlerts = computed(() => (detailMode.value ? buildDetailAlerts(selectedRequest.value) : []))
const topBarView = computed(() => {
@@ -134,6 +135,13 @@ export function useAppShell() {
}
}
if (logDetailMode.value) {
return {
title: '日志详情',
desc: '查看单条日志的解析结果、上下文信息与原始记录。'
}
}
return currentView.value
})
@@ -270,6 +278,7 @@ export function useAppShell() {
currentView,
customRange,
detailMode,
logDetailMode,
filteredRequests,
filters,
handleApprove,