From 593cb8ea750e1d67d84de47a11f494fcc8c894f7 Mon Sep 17 00:00:00 2001 From: shenmo Date: Sun, 5 Apr 2026 22:48:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20APM=20=E5=8F=AF=E7=94=A8=E6=80=A7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=B9=B6=E8=B0=83=E6=95=B4=E7=9B=B8=E5=85=B3=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当 APM 不可用时,自动切换到 Spark 应用管理 禁用 APM 软件标签页的切换按钮 移除侧边栏中 APM 可用性检查的冗余条件 --- src/App.vue | 5 +++++ src/components/AppSidebar.vue | 2 +- src/components/InstalledAppsModal.vue | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index c557bd93..262ea9b9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -119,6 +119,7 @@ :error="installedError" :active-origin="activeInstalledOrigin" :store-filter="storeFilter" + :apm-available="apmAvailable" @close="closeInstalledModal" @refresh="refreshInstalledApps" @uninstall="uninstallInstalledApp" @@ -885,6 +886,10 @@ const upgradeSelectedApps = async () => { const openInstalledModal = () => { showInstalledModal.value = true; + // 如果没有 APM 可用,默认切换到 Spark 应用管理 + if (!apmAvailable.value && activeInstalledOrigin.value === "apm") { + activeInstalledOrigin.value = "spark"; + } refreshInstalledApps(); }; diff --git a/src/components/AppSidebar.vue b/src/components/AppSidebar.vue index 7e4347ca..5ace5b57 100644 --- a/src/components/AppSidebar.vue +++ b/src/components/AppSidebar.vue @@ -89,7 +89,7 @@