diff --git a/ui/src/App.vue b/ui/src/App.vue index 96772f3..7277bc0 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -24,7 +24,7 @@ const userStore = useUserStore(); // console.log(data); // userStore.user = data; // }); -const APIHOST = import.meta.env.BASE_URL; +const APIHOST = import.meta.env.VITE_APIHOST; async function logout() { await fetch(`${APIHOST}/logout`, { diff --git a/ui/src/router/index.js b/ui/src/router/index.js index 3f08f3d..84d7189 100644 --- a/ui/src/router/index.js +++ b/ui/src/router/index.js @@ -37,7 +37,7 @@ const router = createRouter({ ] }) -const addr = import.meta.env.BASE_URL; +const addr = import.meta.env.VITE_APIHOST; router.beforeEach(async (to) => {