feat:更新考试模块

This commit is contained in:
2026-08-02 22:57:58 +08:00
parent 7bb08a7ac4
commit 94afc1519c
10 changed files with 374 additions and 185 deletions

19
src/stores/exam.ts Normal file
View File

@@ -0,0 +1,19 @@
import { defineStore } from 'pinia'
import type { IExamConfig } from '@/types/exam.ts'
export const useExamStore = defineStore('exam', {
state: () => ({
hasStart: false,
hasSubmit: false,
dialogVisible: false,
config: {} as IExamConfig
}),
actions: {
getEmptyConfig(): IExamConfig {
return {
subject: '',
total: 50
}
}
}
})