From 9d163883792ac141be64ce657684ca0dda9f819e Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 30 May 2025 18:00:28 +0800 Subject: [PATCH] fix: external URL prompt in overview page always displays with priority (#7484) #### What type of PR is this? /area ui /kind bug /milestone 2.21.x #### What this PR does / why we need it: See https://github.com/halo-dev/halo/issues/7480 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/7480 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../modules/system/overview/components/ExternalUrlItem.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/console-src/modules/system/overview/components/ExternalUrlItem.vue b/ui/console-src/modules/system/overview/components/ExternalUrlItem.vue index 2db9ee170..d7832555a 100644 --- a/ui/console-src/modules/system/overview/components/ExternalUrlItem.vue +++ b/ui/console-src/modules/system/overview/components/ExternalUrlItem.vue @@ -11,6 +11,10 @@ import ExternalUrlForm from "./ExternalUrlForm.vue"; const { globalInfo } = useGlobalInfoFetch(); const isExternalUrlValid = computed(() => { + if (!globalInfo.value) { + return true; + } + if (!globalInfo.value?.externalUrl) { return false; }