เพิ่มเมนูเปลี่ยนรหัสผ่าน
This commit is contained in:
parent
8d2244d93a
commit
1357e72149
2 changed files with 19 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
import router from '@/router'
|
||||||
|
|
||||||
const ACCESS_TOKEN = 'BMAHRISCKI_KEYCLOAK_IDENTITY'
|
const ACCESS_TOKEN = 'BMAHRISCKI_KEYCLOAK_IDENTITY'
|
||||||
const key_C_Config = {
|
const key_C_Config = {
|
||||||
url_Logout: import.meta.env.VITE_URL_SSO,
|
url_Logout: import.meta.env.VITE_URL_SSO,
|
||||||
|
|
@ -23,7 +25,8 @@ async function setAuthenCheckin(r: AuthResponse) {
|
||||||
|
|
||||||
async function logout() {
|
async function logout() {
|
||||||
await deleteCookie(ACCESS_TOKEN)
|
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() {
|
async function getToken() {
|
||||||
|
|
|
||||||
|
|
@ -364,7 +364,7 @@ onMounted(async () => {
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-list dense class="q-py-sm">
|
<q-list dense class="q-py-sm">
|
||||||
<q-item clickable :href="landingPageUrl">
|
<!-- <q-item clickable :href="landingPageUrl">
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-avatar
|
<q-avatar
|
||||||
color="blue"
|
color="blue"
|
||||||
|
|
@ -375,6 +375,20 @@ onMounted(async () => {
|
||||||
/>
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section class="q-py-sm"> Landing Page </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>
|
||||||
|
|
||||||
<q-item clickable @click="onClickLogout">
|
<q-item clickable @click="onClickLogout">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue