+
+
公开课审核
diff --git a/src/utils/tools.js b/src/utils/tools.js
index 2003c51c..185fb2cc 100644
--- a/src/utils/tools.js
+++ b/src/utils/tools.js
@@ -278,7 +278,7 @@ export function testType(type) { //此方法移到tools中
}
export function toScoreTow(score) {// 返回两位小数
if (!score) {
- return '无';
+ return '0';
}
if((''+score).indexOf('.')>-1){
return score.toFixed(2);
diff --git a/src/views/exam/MyExamTask.vue b/src/views/exam/MyExamTask.vue
index 6f19d374..30127245 100644
--- a/src/views/exam/MyExamTask.vue
+++ b/src/views/exam/MyExamTask.vue
@@ -40,7 +40,7 @@
时间: {{ item.startTime}} 到 {{ item.endTime}}
时长:{{item.testDuration}}分钟
总分:100分
- 成绩:{{toScoreTow(item.score)}}
+ 成绩:{{item.score==0? '无':toScoreTow(item.score)}}