|
|
@@ -299,6 +299,9 @@ const handleUpdateQuestion = (question: Study.Question) => {
|
|
|
* @param fullQuestion 当前试卷数据
|
|
|
*/
|
|
|
const restoreQuestion = (savedQuestion: Study.ExamineeQuestion[], fullQuestion: Study.ApiQuestion[]) => {
|
|
|
+ if (!savedQuestion) {
|
|
|
+ return fullQuestion;
|
|
|
+ }
|
|
|
console.log(savedQuestion, fullQuestion)
|
|
|
for (const item of fullQuestion) {
|
|
|
const savedQs = savedQuestion.find(q => q.id === item.id);
|