ต่อ api ใบเข้าสอบ
This commit is contained in:
parent
8d53b576e2
commit
04bbc10531
8 changed files with 112 additions and 53 deletions
|
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue