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("BMAHRISUSER_KEYCLOAK_IDENTITY");
|
||||
|
||||
const uid = await getCookie("uid");
|
||||
console.log("uid===>", uid);
|
||||
|
||||
await axios
|
||||
.post(
|
||||
`${config.API.sso}/kcauth`,
|
||||
{},
|
||||
{ uid: uid },
|
||||
{
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
|
@ -196,7 +199,7 @@ onMounted(async () => {
|
|||
if (location.hostname == "hrms.chin.in.th") {
|
||||
router.push("/sso");
|
||||
} 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