This commit is contained in:
chndfang 2025-06-04 10:43:58 +08:00
parent 3c23acb1a4
commit f34d722780
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export interface RobotInfo {
label: string; // 机器人名称
brand: RobotBrand; // 机器人品牌
type: RobotType; // 机器人类型
ip: string; // 机器人ip
ip?: string; // 机器人ip
battery?: number; // 机器人电量
isConnected?: boolean; // 机器人连接状态
state?: RobotState; // 机器人状态
@ -29,6 +29,8 @@ export interface RobotDetail extends RobotInfo {
chargeBattery?: number; // 充电电量
taskBattery?: number; // 任务电量
swapBattery?: number; // 交换电量
length?: number; // 空载长
width?: number; // 空载宽
}
export interface RobotRealtimeInfo extends RobotInfo {

View File

@ -33,7 +33,7 @@ const stateDot = computed<string>(() => `state-${robot.value?.state}`);
</a-flex>
</a-col>
<a-col :span="24">
<a-col v-if="robot.ip" :span="24">
<a-typography-text code>{{ robot.ip }}</a-typography-text>
</a-col>