updated
This commit is contained in:
parent
3c62f748b6
commit
49d4e4a0d6
1 changed files with 5 additions and 2 deletions
|
|
@ -164,10 +164,13 @@ onMounted(async () => {
|
||||||
deleteCookie("BMAHRISCKI_KEYCLOAK_IDENTITY");
|
deleteCookie("BMAHRISCKI_KEYCLOAK_IDENTITY");
|
||||||
deleteCookie("BMAHRISUSER_KEYCLOAK_IDENTITY");
|
deleteCookie("BMAHRISUSER_KEYCLOAK_IDENTITY");
|
||||||
|
|
||||||
|
const uid = await getCookie("uid");
|
||||||
|
console.log("uid===>", uid);
|
||||||
|
|
||||||
await axios
|
await axios
|
||||||
.post(
|
.post(
|
||||||
`${config.API.sso}/kcauth`,
|
`${config.API.sso}/kcauth`,
|
||||||
{},
|
{ uid: uid },
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
@ -196,7 +199,7 @@ onMounted(async () => {
|
||||||
if (location.hostname == "hrms.chin.in.th") {
|
if (location.hostname == "hrms.chin.in.th") {
|
||||||
router.push("/sso");
|
router.push("/sso");
|
||||||
} else {
|
} else {
|
||||||
window.location.href = `${config.API.URL_SSO}`;
|
// window.location.href = `${config.API.URL_SSO}`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue