get คำถามหน้าแบบสอบถาม

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-09 14:13:21 +07:00
parent 6384d80488
commit 2ad74a38fc
5 changed files with 449 additions and 143 deletions

View file

@ -6,11 +6,13 @@ import type { Information } from "@/modules/05_placement/components/PersonalDeta
export const usePersonalDataStore = defineStore("personal-detail", () => {
const dataMain = ref<any>([])
const loading = ref<boolean>(false)
function fecthDataInformation(data: Information) {
dataMain.value = data
dataMain.value.length !== 0 ? loading.value = true : loading.value = false
if (dataMain.value) {
loading.value = true
} else {
loading.value = false
}
}
return {