|
@@ -102,24 +102,24 @@ export const useStore = defineStore("ecs", {
|
|
|
updateExamQuestion({
|
|
|
order,
|
|
|
studentAnswer,
|
|
|
- isSign,
|
|
|
+ isStarred,
|
|
|
audioPlayTimes,
|
|
|
- getQuestionContent,
|
|
|
+ gotQuestionContent,
|
|
|
}: {
|
|
|
order: number;
|
|
|
studentAnswer?: string;
|
|
|
- isSign?: boolean;
|
|
|
+ isStarred?: boolean;
|
|
|
audioPlayTimes?: AudioPlayTime[];
|
|
|
- getQuestionContent?: boolean;
|
|
|
+ gotQuestionContent?: boolean;
|
|
|
}) {
|
|
|
store.exam.examQuestionList.map((eq) => {
|
|
|
if (eq.order == order) {
|
|
|
const upEq: typeof eq = {} as any;
|
|
|
- // 仅在设置getQuestionContent时,不更新dirty
|
|
|
- if (getQuestionContent === undefined) {
|
|
|
+ // 仅在设置gotQuestionContent时,不更新dirty
|
|
|
+ if (gotQuestionContent === undefined) {
|
|
|
upEq.dirty = true;
|
|
|
} else {
|
|
|
- upEq.getQuestionContent = getQuestionContent;
|
|
|
+ upEq.gotQuestionContent = gotQuestionContent;
|
|
|
}
|
|
|
if (studentAnswer !== undefined) {
|
|
|
upEq.studentAnswer = studentAnswer;
|
|
@@ -128,8 +128,8 @@ export const useStore = defineStore("ecs", {
|
|
|
if (audioPlayTimes !== undefined) {
|
|
|
upEq.audioPlayTimes = audioPlayTimes;
|
|
|
}
|
|
|
- if (isSign !== undefined) {
|
|
|
- upEq.isSign = isSign;
|
|
|
+ if (isStarred !== undefined) {
|
|
|
+ upEq.isStarred = isStarred;
|
|
|
}
|
|
|
return Object.assign(eq, upEq);
|
|
|
}
|