mirror of https://github.com/halo-dev/halo
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 ```pull/7486/head^2
parent
bb49a10a01
commit
9d16388379
|
@ -11,6 +11,10 @@ import ExternalUrlForm from "./ExternalUrlForm.vue";
|
||||||
const { globalInfo } = useGlobalInfoFetch();
|
const { globalInfo } = useGlobalInfoFetch();
|
||||||
|
|
||||||
const isExternalUrlValid = computed(() => {
|
const isExternalUrlValid = computed(() => {
|
||||||
|
if (!globalInfo.value) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!globalInfo.value?.externalUrl) {
|
if (!globalInfo.value?.externalUrl) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue