|
|
@@ -248,12 +248,13 @@ export function changeQuestion(questionId: number) {
|
|
|
for (let i = 0; i < question.codeList.length; i++){
|
|
|
if (question.codeList[i].questionId === current.questionId) {
|
|
|
question.codeList[i] = current
|
|
|
- store.dispatch(loadQuestion(question))
|
|
|
}
|
|
|
if (question.codeList[i].questionId === questionId) {
|
|
|
next = question.codeList[i]
|
|
|
}
|
|
|
}
|
|
|
+ store.dispatch(loadQuestion(question))
|
|
|
+ store.dispatch(loadCurrentQuestion(next? next : {}))
|
|
|
generateFileTree(next? next : {})
|
|
|
}
|
|
|
}
|