提交修改

This commit is contained in:
daihh
2022-08-12 16:34:20 +08:00
parent 65f7bd6df9
commit e49969d587
3 changed files with 33 additions and 4 deletions

View File

@@ -562,6 +562,7 @@ export default {
}
if(this.multiple.length > 0){
this.multiple.forEach(item => {
//提取正确答案
let tempAnswer=[];
item.optionList.forEach(opt=>{
if(opt.isAnswer){
@@ -578,7 +579,10 @@ export default {
}
let str1=item.userAnswer.join();
let str2=tempAnswer.join();
if(str1==str2){
console.log('str1='+str1);
console.log('str2='+str2);
total+=item.defaultScore;
}
});