Kaynağa Gözat

fix(gameEventProject): 修复裁判组显示条件判断

当裁判组数据为空时不应显示按钮,需要判断 refereeGroups 的大小而非是否存在

Co-authored-by: Copilot <copilot@github.com>
zhou 3 hafta önce
ebeveyn
işleme
600fb35996
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/views/system/gameEventProject/index.vue

+ 1 - 1
src/views/system/gameEventProject/index.vue

@@ -81,7 +81,7 @@
         <el-table-column label="裁判组" align="center" prop="refereeGroup" v-if="columns[8].visible">
           <template #default="scope">
             <el-button
-              v-if="scope.row.refereeGroups"
+              v-if="scope.row.refereeGroups.size > 0"
               type="primary"
               size="small"
               @click="handleViewRefereeGroup(scope.row.refereeGroups, scope.row.projectName)"