get คำถามหน้าแบบสอบถาม
This commit is contained in:
parent
6384d80488
commit
2ad74a38fc
5 changed files with 449 additions and 143 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue