feat:更新考试模块
This commit is contained in:
15
src/stores/question.ts
Normal file
15
src/stores/question.ts
Normal 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[]
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user