From 5556c49f0e32423885edd7f28c2ac92720ff7697 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 17 Dec 2024 11:29:25 +0700 Subject: [PATCH] updated config api --- src/views/home.vue | 4 ++-- src/views/sso.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index 30d3652..15d3e1f 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -82,7 +82,7 @@ async function logout() { await deleteCookie("BMAHRIS_KEYCLOAK_IDENTITY"); await deleteCookie("BMAHRIS_KEYCLOAK_REFRESH"); - router.push("/sso"); + window.location.href = `${import.meta.env.VITE_URL_SSO}`; } onMounted(async () => { @@ -98,7 +98,7 @@ onMounted(async () => { if (!checkToken && !token.value) { await axios .post( - `${import.meta.env.VITE_URL_SSO}/kcauth`, + `${import.meta.env.VITE_API_SSO}/kcauth`, {}, { headers: { diff --git a/src/views/sso.vue b/src/views/sso.vue index 430da4f..f3dbbc4 100644 --- a/src/views/sso.vue +++ b/src/views/sso.vue @@ -28,7 +28,7 @@ async function onSubmit() { await axios .post( - `${import.meta.env.VITE_URL_SSO}/signin`, + `${import.meta.env.VITE_API_SSO}/signin`, { username: username.value, password: password.value,