mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
提交修改
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user