Skip to content

Commit df17515

Browse files
authored
Access imported variable in JS context instead of within Vue template body
1 parent 3b1baa3 commit df17515

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/src/components/Presentation/OrcidId.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ export default defineComponent({
2020
type: Boolean,
2121
required: true,
2222
},
23+
orcidBaseUrl: {
24+
type: String,
25+
default: ORCID_BASE_URL,
26+
},
2327
},
2428
});
2529
</script>
2630

2731
<template>
2832
<div :style="{display: 'flex'}">
2933
<a
30-
:href="`${ORCID_BASE_URL}/${orcidId}`"
34+
:href="`${orcidBaseUrl}/${orcidId}`"
3135
:style="{display: 'flex'}"
3236
>
3337
<span

0 commit comments

Comments
 (0)