Skip to content

Commit

Permalink
fix(theme): fix feature component always generating anchor tags
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jul 26, 2023
1 parent 74d9ba2 commit 51f28bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 51f28bf

Please sign in to comment.