|
@@ -729,12 +729,12 @@ export default {
|
|
|
GetQuestionInfo({ question_id: id }).then(({ question: { content } }) => JSON.parse(content)),
|
|
|
);
|
|
|
Promise.all(promises).then((list) => {
|
|
|
- let score = list.reduce((acc, { property }) => {
|
|
|
+ let score = list.reduce((acc, { property, option_list }) => {
|
|
|
return (
|
|
|
acc +
|
|
|
(property.score_type === scoreTypeList[0].value
|
|
|
? property.score
|
|
|
- : property.score * (property?.option_number ?? 1))
|
|
|
+ : property.score * (option_list?.length ?? 1))
|
|
|
);
|
|
|
}, 0);
|
|
|
this.showScore = score;
|
|
@@ -743,7 +743,7 @@ export default {
|
|
|
this.showScore =
|
|
|
curQuestion.property.score_type === scoreTypeList[0].value
|
|
|
? curQuestion.property.score
|
|
|
- : curQuestion.property.score * (curQuestion.property?.option_number ?? 1);
|
|
|
+ : curQuestion.property.score * (curQuestion?.option_list.length ?? 1);
|
|
|
}
|
|
|
},
|
|
|
},
|