feat(link): remove href prototype when empty (#2969)

This commit is contained in:
Aex 2021-08-19 17:09:17 +08:00 committed by GitHub
parent 2bc16a2bab
commit f3536b899f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
disabled && 'is-disabled',
underline && !disabled && 'is-underline'
]"
:href="disabled ? null : href"
:href="disabled || !href ? null : href"
@click="handleClick"
>
<i v-if="icon" :class="icon"></i>