fix(theme): fix feature component always generating anchor tags

pull/2685/head
Divyansh Singh 1 year ago
parent 74d9ba27b5
commit 51f28bfac9

@ -11,7 +11,7 @@ const props = defineProps<{
rel?: string
}>()
const tag = computed(() => props.tag ?? props.href ? 'a' : 'span')
const tag = computed(() => props.tag ?? (props.href ? 'a' : 'span'))
const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href))
</script>

Loading…
Cancel
Save