AgendaLink.vue 452 B

12345678910111213141516171819202122232425
  1. <template>
  2. <nuxt-link :href="target" target="_blank">
  3. <slot />
  4. </nuxt-link>
  5. </template>
  6. <script setup lang="ts">
  7. import UrlUtils from "~/services/utils/urlUtils";
  8. const runtimeConfig = useRuntimeConfig()
  9. const props = defineProps({
  10. href: {
  11. type: String
  12. }
  13. })
  14. const target = computed(() => {
  15. return UrlUtils.join(runtimeConfig.public.agendaBaseUrl as string, props.href as string)
  16. })
  17. </script>
  18. <style scoped lang="scss">
  19. </style>