fix: 在机器人详情卡片中处理未定义状态,增加“未知”状态的显示以提升用户体验

This commit is contained in:
xudan 2025-10-11 11:15:44 +08:00
parent 6033553196
commit 358f213eac

View File

@ -147,7 +147,7 @@ const getDoInfo = (information: AmrRedisState['information'] | undefined) => {
<a-tag v-if="robot.state !== undefined">
<i class="dot mr-4" :class="stateDot" />
<span>{{ $t(RobotState[robot.state]) }}</span>
<span>{{ RobotState[robot.state] || '未知' }}</span>
</a-tag>
</a-space>
</a-col>