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

15
src/stores/question.ts Normal file
View File

@@ -0,0 +1,15 @@
import { defineStore } from 'pinia'
import type { IPracticeCheck, IPracticeRecord } from '@/types/practice.ts'
import type { IQuestion } from '@/types/question.ts'
export const useQuestionStore = defineStore('question', {
state: () => ({
hasStart: false,
hasSubmit: false,
hasGenerateQuestion: false,
questionContent: '',
questionList: [] as IQuestion[],
recordList: [] as IPracticeRecord[],
checkList: [] as IPracticeCheck[]
})
})