Browse Source

fix: 修复toFixed造成的显示问题

chenhao 2 years ago
parent
commit
3a2e1f69c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/features/mark/MarkHeader.vue

+ 2 - 2
src/features/mark/MarkHeader.vue

@@ -54,8 +54,8 @@ src="./images/problems.svg" :class="questionMarkShouldChange && 'question-mark-a
         <span class="header-small-text">成绩</span>
         <span class="highlight-text" style="margin-left: 0.2em; margin-top: 0.1em">
           {{
-            (((Math.max(store.currentTask.objectiveScore || 0, 0) * 100 +
-          Math.max(store.currentTask.markResult?.markerScore || 0, 0) * 100) | 0) / 100).toFixed(2)
+            parseFloat((((Math.max(store.currentTask.objectiveScore || 0, 0) * 100 +
+          Math.max(store.currentTask.markResult?.markerScore || 0, 0) * 100) | 0) / 100).toFixed(2))
           }}
         </span>
       </div>