diff --git a/src/plugins/auth.ts b/src/plugins/auth.ts
index 5e8aed4..5052942 100644
--- a/src/plugins/auth.ts
+++ b/src/plugins/auth.ts
@@ -1,3 +1,5 @@
+import router from '@/router'
+
const ACCESS_TOKEN = 'BMAHRISCKI_KEYCLOAK_IDENTITY'
const key_C_Config = {
url_Logout: import.meta.env.VITE_URL_SSO,
@@ -23,7 +25,8 @@ async function setAuthenCheckin(r: AuthResponse) {
async function logout() {
await deleteCookie(ACCESS_TOKEN)
- window.location.href = key_C_Config.url_Logout
+ // window.location.href = key_C_Config.url_Logout
+ router.push('/login')
}
async function getToken() {
diff --git a/src/views/MainView.vue b/src/views/MainView.vue
index d252ed2..3e534a8 100644
--- a/src/views/MainView.vue
+++ b/src/views/MainView.vue
@@ -364,7 +364,7 @@ onMounted(async () => {
-
+
+
+
+
+
+
+ เปลี่ยนรหัสผ่าน
+