理论题库导入

This commit is contained in:
fan 2020-09-22 16:56:32 +08:00
parent 4a0509546f
commit 7b766e2a47

View File

@ -217,7 +217,7 @@ export default {
optionList: [] optionList: []
}; };
param.optionList.push({ content:dataList[option1Index][index] || '正确', correct: dataList[answerIndex][index].includes('A') || dataList[answerIndex][index] == '√' }); param.optionList.push({ content:dataList[option1Index][index] || '正确', correct: dataList[answerIndex][index].includes('A') || dataList[answerIndex][index] == '√' });
param.optionList.push({ content:dataList[option2Index][index] || '错误', correct: dataList[answerIndex][index].includes('B') || dataList[answerIndex][index] == '' }); param.optionList.push({ content:dataList[option2Index][index] || '错误', correct: dataList[answerIndex][index].includes('B') || dataList[answerIndex][index] == '×' });
if (dataList[option3Index][index]) { if (dataList[option3Index][index]) {
param.optionList.push({content:dataList[option3Index][index], correct: dataList[answerIndex][index].includes('C')}); param.optionList.push({content:dataList[option3Index][index], correct: dataList[answerIndex][index].includes('C')});
} }