refactor code & fixed location
This commit is contained in:
parent
41c1aa8e45
commit
487a6b520e
23 changed files with 566 additions and 145 deletions
|
|
@ -4,9 +4,11 @@ import { useQuasar } from 'quasar'
|
|||
import http from '@/plugins/http'
|
||||
import config from '@/app.config'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
import { usePositionKeycloakStore } from '@/stores/positionKeycloak'
|
||||
|
||||
const $q = useQuasar()
|
||||
const privacyStore = usePrivacyStore()
|
||||
const positionKeycloakStore = usePositionKeycloakStore()
|
||||
|
||||
const modal = defineModel<boolean>('modal', {
|
||||
required: true,
|
||||
|
|
@ -78,6 +80,12 @@ const handleAccept = async () => {
|
|||
accept: true,
|
||||
})
|
||||
privacyStore.setAccepted(true)
|
||||
|
||||
// อัปเดต privacyCheckin ใน positionKeycloak store ด้วย
|
||||
if (positionKeycloakStore.dataPositionKeycloak) {
|
||||
positionKeycloakStore.dataPositionKeycloak.privacyCheckin = true
|
||||
}
|
||||
|
||||
modal.value = false
|
||||
} catch (error) {}
|
||||
}
|
||||
|
|
@ -89,7 +97,7 @@ const toggleDetails = () => {
|
|||
|
||||
const checkIfScrollable = () => {
|
||||
nextTick(() => {
|
||||
const container = scrollContainer.value?.$el || scrollContainer.value
|
||||
const container = (scrollContainer.value as any)?.$el || scrollContainer.value
|
||||
if (container) {
|
||||
const { scrollHeight, clientHeight } = container
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue