diff --git a/src/runtime/components/elements/Icon.vue b/src/runtime/components/elements/Icon.vue index f3f6e14a6b..420588d7ff 100644 --- a/src/runtime/components/elements/Icon.vue +++ b/src/runtime/components/elements/Icon.vue @@ -26,7 +26,7 @@ const component = computed(() => nuxtApp.vueApp.component(props.name)) const loadIconComponent = (name: string) => { state.value = state.value || {} - if (nuxtApp.vueApp.component(props.name) || state.value[name] || state.value[name] === null) { return } + if (nuxtApp.vueApp.component(props.name) || state.value[name] || state.value[name] === null) { return state.value[name] } state.value[name] = loadIcon(name) .then((res) => { state.value[name] = res })