Tweak to check

This commit is contained in:
rijkvanzanten
2021-06-21 17:26:22 -04:00
parent 6c98ef6516
commit f42d7b55b1

View File

@@ -140,7 +140,7 @@ export default defineComponent({
const component = computed<'a' | 'router-link' | 'button'>(() => {
if (props.disabled) return 'button';
if (notEmpty(props.href)) return 'a';
if (notEmpty(props.to)) return 'router-link';
if (props.to) return 'router-link';
return 'button';
});