diff --git a/src/components/offline-device-detail-modal.vue b/src/components/offline-device-detail-modal.vue index a53aa8f..a9c7889 100644 --- a/src/components/offline-device-detail-modal.vue +++ b/src/components/offline-device-detail-modal.vue @@ -35,8 +35,8 @@ watch(show, (newValue) => { const searchPattern = ref(''); const searchFilter: (pattern: string, node: TreeOption) => boolean = (pattern, node) => { const device = node['device'] as NdmDeviceVO | undefined; - const { name, ipAddress } = device ?? {}; - return (name ?? '').includes(pattern) || (ipAddress ?? '').includes(pattern); + const { name, ipAddress, deviceId } = device ?? {}; + return (name ?? '').includes(pattern) || (ipAddress ?? '').includes(pattern) || (deviceId ?? '').includes(pattern); }; const offlineDeviceCount = computed(() => { @@ -107,7 +107,7 @@ const onModalClose = () => { 当前没有离线设备