update auth
This commit is contained in:
parent
23afdc4df9
commit
ff3fb68219
12 changed files with 222 additions and 308 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { defineStore } from 'pinia'
|
||||
import CustomComponent from '@/components/CustomDialog.vue'
|
||||
import { Loading, QSpinnerCube } from 'quasar'
|
||||
import { kcLogout } from '@/plugins/keycloak'
|
||||
import { logout } from '@/plugins/auth'
|
||||
|
||||
export const useCounterMixin = defineStore('mixin', () => {
|
||||
function date2Thai(srcDate: Date, isFullMonth = false, isTime = false) {
|
||||
|
|
@ -146,7 +146,7 @@ export const useCounterMixin = defineStore('mixin', () => {
|
|||
},
|
||||
}).onCancel(async () => {
|
||||
showLoader()
|
||||
await kcLogout()
|
||||
await logout()
|
||||
setTimeout(() => {
|
||||
hideLoader()
|
||||
}, 1000)
|
||||
|
|
@ -178,7 +178,7 @@ export const useCounterMixin = defineStore('mixin', () => {
|
|||
},
|
||||
}).onCancel(async () => {
|
||||
showLoader()
|
||||
await kcLogout()
|
||||
await logout()
|
||||
setTimeout(() => {
|
||||
hideLoader()
|
||||
}, 1000)
|
||||
|
|
@ -196,7 +196,7 @@ export const useCounterMixin = defineStore('mixin', () => {
|
|||
},
|
||||
}).onCancel(async () => {
|
||||
showLoader()
|
||||
await kcLogout()
|
||||
await logout()
|
||||
setTimeout(() => {
|
||||
hideLoader()
|
||||
}, 1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue