|
@@ -12,8 +12,13 @@ export function autoChooseFirstQuestion() {
|
|
() => store.currentTask,
|
|
() => store.currentTask,
|
|
() => {
|
|
() => {
|
|
// FIXME: 此时取到的还是score:null,但是 chooseQuestion之后就变成了score:0
|
|
// FIXME: 此时取到的还是score:null,但是 chooseQuestion之后就变成了score:0
|
|
- const firstQuetion = store.currentTask?.questionList[0];
|
|
|
|
- firstQuetion && chooseQuestion(firstQuetion);
|
|
|
|
|
|
+ const firstQuestion = store.currentTask?.questionList[0];
|
|
|
|
+ if (firstQuestion) {
|
|
|
|
+ const oldScore = firstQuestion.score;
|
|
|
|
+ console.log(oldScore);
|
|
|
|
+ chooseQuestion(firstQuestion);
|
|
|
|
+ setTimeout(() => (firstQuestion.score = oldScore), 0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|