diff --git a/webapp/src/components/CodeListSelector.vue b/webapp/src/components/CodeListSelector.vue index a8f173f..4a384ba 100644 --- a/webapp/src/components/CodeListSelector.vue +++ b/webapp/src/components/CodeListSelector.vue @@ -7,6 +7,7 @@ +
+
+
+ +
diff --git a/webapp/src/components/ImportOSCAR.vue b/webapp/src/components/ImportOSCAR.vue index 8363c23..4f84f66 100644 --- a/webapp/src/components/ImportOSCAR.vue +++ b/webapp/src/components/ImportOSCAR.vue @@ -201,7 +201,7 @@ const loadCodeList = async (codeList) => { try{ - const clist = await fetch("/code_lists/" + codeList + ".json"); + const clist = await fetch(`${import.meta.env.VITE_BASE_URL}/code_lists/${codeList}.json`); var data = null; if( clist.ok ){ await clist.json().then( (d) => data = d); diff --git a/webapp/src/components/StationEditor.vue b/webapp/src/components/StationEditor.vue index c0fed2b..cb1f1df 100644 --- a/webapp/src/components/StationEditor.vue +++ b/webapp/src/components/StationEditor.vue @@ -262,7 +262,7 @@ const loadCodeList = async (codeList) => { try{ - const clist = await fetch("/code_lists/" + codeList + ".json"); + const clist = await fetch(`${import.meta.env.VITE_BASE_URL}/code_lists/${codeList}.json`); var data = null; if( clist.ok ){ await clist.json().then( (d) => data = d); diff --git a/webapp/src/components/TopicHierarchySelector.vue b/webapp/src/components/TopicHierarchySelector.vue index dd24681..090a408 100644 --- a/webapp/src/components/TopicHierarchySelector.vue +++ b/webapp/src/components/TopicHierarchySelector.vue @@ -15,7 +15,7 @@ />
- {{ errorMessage }} + {{ errorMessage }}