From 5d7519773a5ee1ebafc3ed9e6070d6055554eef9 Mon Sep 17 00:00:00 2001 From: yangsy Date: Fri, 7 Nov 2025 10:58:09 +0800 Subject: [PATCH] fix(camera-card): reorganize commonInfo --- .../device-page/device-card/camera-card.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/device-page/device-card/camera-card.vue b/src/components/device-page/device-card/camera-card.vue index 9dbd4dd..2b46937 100644 --- a/src/components/device-page/device-card/camera-card.vue +++ b/src/components/device-page/device-card/camera-card.vue @@ -37,8 +37,8 @@ const commonInfo = computed(() => { onvifMajorIndex, onvifMinorIndex, icmpEnabled, - deviceType, - cameraType, + // deviceType, + // cameraType, community, // } = ndmCamera.value; @@ -46,15 +46,15 @@ const commonInfo = computed(() => { 创建时间: createdTime ?? '', 更新时间: updatedTime ?? '', 制造商: manufacturer ?? '', - GB28181使能: `${gb28181Enabled !== undefined ? gb28181Enabled : ''}`, + GB28181使能: `${!!gb28181Enabled ? '是' : '否'}`, ONVIF端口: `${onvifPort ?? ''}`, ONVIF用户名: onvifUsername ?? '', ONVIF密码: onvifPassword ?? '', ONVIF主流索引: `${onvifMajorIndex ?? ''}`, ONVIF辅流索引: `${onvifMinorIndex ?? ''}`, - ICMP使能: `${icmpEnabled !== undefined ? icmpEnabled : ''}`, - 设备类型: deviceType ?? '', - 相机类型: cameraType ?? '', + ICMP使能: `${!!icmpEnabled ? '是' : '否'}`, + // 设备类型: deviceType ?? '', + // 相机类型: cameraType ?? '', 团体字符串: community ?? '', }; });