feat(应用管理): 添加 APM 可用性检查并调整相关逻辑

当 APM 不可用时,自动切换到 Spark 应用管理
禁用 APM 软件标签页的切换按钮
移除侧边栏中 APM 可用性检查的冗余条件
This commit is contained in:
2026-04-05 22:48:19 +08:00
parent f7424ba4a7
commit 593cb8ea75
3 changed files with 8 additions and 1 deletions

View File

@@ -39,6 +39,7 @@
? 'bg-brand/10 text-brand dark:bg-brand/15'
: 'text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200'
"
:disabled="!apmAvailable"
@click="$emit('switch-origin', 'apm')"
>
APM 软件
@@ -183,6 +184,7 @@ defineProps<{
error: string;
activeOrigin: "apm" | "spark";
storeFilter: "spark" | "apm" | "both";
apmAvailable: boolean;
}>();
defineEmits<{