Skip to content

Commit

Permalink
Access imported variable in JS context instead of within Vue template…
Browse files Browse the repository at this point in the history
… body
  • Loading branch information
eecavanna authored Aug 13, 2024
1 parent 3b1baa3 commit df17515
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/Presentation/OrcidId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ export default defineComponent({
type: Boolean,
required: true,
},
orcidBaseUrl: {
type: String,
default: ORCID_BASE_URL,
},
},
});
</script>

<template>
<div :style="{display: 'flex'}">
<a
:href="`${ORCID_BASE_URL}/${orcidId}`"
:href="`${orcidBaseUrl}/${orcidId}`"
:style="{display: 'flex'}"
>
<span
Expand Down

0 comments on commit df17515

Please sign in to comment.