zengyicheng 2 年之前
父節點
當前提交
87b51165d1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/pages/myReport/components/courseEvaScore.vue

+ 2 - 2
src/components/pages/myReport/components/courseEvaScore.vue

@@ -10,7 +10,7 @@
     </div> -->
     <div class="scoreBox" v-if="isSortArray && isSortArray.length">
       <div class="scoreLeft" v-if="isSortArray && isSortArray.length">
-        <div>
+        <div v-if="isSortArray.length > 1">
           <el-tooltip
             effect="light"
             :content="`${isSortArray[1].name} - ${isSortArray[1].value}`"
@@ -28,7 +28,7 @@
             <span>{{ isSortArray[0].name }}</span>
           </el-tooltip>
         </div>
-        <div>
+        <div v-if="isSortArray.length > 2">
           <el-tooltip
             effect="light"
             :content="`${isSortArray[2].name} - ${isSortArray[2].value}`"