From 99661504e5727651ca56e19599e694960ef3e569 Mon Sep 17 00:00:00 2001 From: Stuart Laverick Date: Tue, 21 Nov 2023 10:19:56 +0000 Subject: [PATCH] Replaced out of scope reference in register views --- src/views/register/Index.vue | 2 +- src/views/register/forms/OrganisationSearch.vue | 2 +- src/views/register/new/Register.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/register/Index.vue b/src/views/register/Index.vue index 6308e225..83b78062 100644 --- a/src/views/register/Index.vue +++ b/src/views/register/Index.vue @@ -18,7 +18,7 @@ import Form from "@/classes/Form"; import axios from "axios"; const http = axios.create({ - baseURL: `${this.appApiUri}/core/v1` + baseURL: `${process.env.VUE_APP_API_URI}/core/v1` }); http.defaults.headers.post["Content-Type"] = "application/json"; diff --git a/src/views/register/forms/OrganisationSearch.vue b/src/views/register/forms/OrganisationSearch.vue index 4ae56afe..21a07dd9 100644 --- a/src/views/register/forms/OrganisationSearch.vue +++ b/src/views/register/forms/OrganisationSearch.vue @@ -37,7 +37,7 @@ import axios from "axios"; const http = axios.create({ - baseURL: `${this.appApiUri}/core/v1` + baseURL: `${process.env.VUE_APP_API_URI}/core/v1` }); http.defaults.headers.post["Content-Type"] = "application/json"; diff --git a/src/views/register/new/Register.vue b/src/views/register/new/Register.vue index f3f4570d..38a5ec39 100644 --- a/src/views/register/new/Register.vue +++ b/src/views/register/new/Register.vue @@ -27,7 +27,7 @@ import Form from "@/classes/Form"; import axios from "axios"; const http = axios.create({ - baseURL: `${this.appApiUri}/core/v1` + baseURL: `${process.env.VUE_APP_API_URI}/core/v1` }); http.defaults.headers.post["Content-Type"] = "application/json";