diff --git a/src/views/home.vue b/src/views/home.vue index 8b6e824..3f70af8 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -225,6 +225,12 @@ onMounted(async () => { // ดึงชื่อผู้ใช้ getName(); + } else { + if (location.hostname != "hrms.bangkok.go.th") { + router.push("/sso"); + } else { + window.location.href = `${config.API.URL_SSO}`; + } } });