Kaynağa Gözat

fix(structures): 处理盲注级别显示问题- 使用空值合并操作符确保盲注值存在默认值- 防止因盲注数据缺失导致的显示异常- 提高盲注信息展示的稳定性

fugui001 2 ay önce
ebeveyn
işleme
21cfc42a7d

+ 4 - 1
src/views/system/business/structures/index.vue

@@ -382,7 +382,10 @@ const formatBlindLevel = (blindLevels) => {
     return '—';
   }
   const firstLevel = blindLevels[0];
-  return `${firstLevel.smallBlind}/${firstLevel.bigBlind} ${firstLevel.ante}`;
+  const smallBlind = firstLevel.smallBlind ?? 0;
+  const bigBlind = firstLevel.bigBlind ?? 0;
+  const ante = firstLevel.ante ?? 0;
+  return `${smallBlind}/${bigBlind} ${ante}`;
 };
 
 const handleViewLevels = (row) => {