Display: Fix double anchor tag for custom router-link

pull/6037/head
Angel Fernando Quiroz Campos 8 months ago
parent 107a61c9cb
commit 304ea7d790
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 4
      assets/css/app.scss
  2. 5
      assets/css/scss/molecules/_course_tool.scss
  3. 16
      assets/vue/components/basecomponents/BaseAppLink.vue

@ -292,6 +292,10 @@
}
}
.mdi {
@apply font-normal text-base leading-none;
}
.field > small.p-error {
@apply text-error;
}

@ -13,7 +13,10 @@
&__icon {
@apply text-transparent bg-clip-text bg-gradient-to-br from-primary to-primary-gradient leading-none;
font-size: 52px;
&,
&.mdi {
font-size: 52px;
}
&::before {
}

@ -2,10 +2,6 @@
import { RouterLink } from "vue-router"
import { computed } from "vue"
defineOptions({
inheritAttrs: false,
})
const props = defineProps({
...RouterLink.props,
url: {
@ -28,16 +24,8 @@ const isAnchor = computed(() => !!props.url)
</a>
<router-link
v-else
v-slot="{ href, navigate }"
custom
v-bind="$props"
v-bind="props"
>
<a
:href="href"
v-bind="$attrs"
@click="navigate"
>
<slot />
</a>
<slot />
</router-link>
</template>

Loading…
Cancel
Save