ต่อ api ใบเข้าสอบ

This commit is contained in:
Kittapath 2023-04-06 22:52:53 +07:00
parent 8d53b576e2
commit 04bbc10531
8 changed files with 112 additions and 53 deletions

View file

@ -15,6 +15,7 @@ export const useExamDataStore = defineStore('exam', () => {
})
const consend = ref<boolean>(false)
const status = ref<string>('')
const changeExamColumns = (system: String, val: String[]) => {
if (system == 'main') examData.value.main.columns = val
@ -27,9 +28,15 @@ export const useExamDataStore = defineStore('exam', () => {
examData.value = JSON.parse(localStorage.getItem('exam') || '{}')
}
const changeStatus = (val: string) => {
status.value = val
}
return {
examData,
changeExamColumns,
consend
consend,
status,
changeStatus
}
})