เพิ่มเมนูเปลี่ยนรหัสผ่าน

This commit is contained in:
Warunee Tamkoo 2025-02-20 13:14:49 +07:00
parent 8d2244d93a
commit 1357e72149
2 changed files with 19 additions and 2 deletions

View file

@ -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() {

View file

@ -364,7 +364,7 @@ onMounted(async () => {
<q-separator />
<q-list dense class="q-py-sm">
<q-item clickable :href="landingPageUrl">
<!-- <q-item clickable :href="landingPageUrl">
<q-item-section avatar>
<q-avatar
color="blue"
@ -375,6 +375,20 @@ onMounted(async () => {
/>
</q-item-section>
<q-item-section class="q-py-sm"> Landing Page </q-item-section>
</q-item> -->
<q-item clickable>
<q-item-section avatar>
<q-avatar
color="blue"
text-color="white"
icon="mdi-lock"
size="24px"
font-size="14px"
/>
</q-item-section>
<q-item-section class="q-py-sm">
เปลยนรหสผาน
</q-item-section>
</q-item>
<q-item clickable @click="onClickLogout">