Commit 149e69f656d7411a1c486ddf3b2706c82f00fdc0

Authored by ww
1 parent 982e25e2

fix: 批量导入的设备无经纬度信息,编辑和详情是会发生报错

... ... @@ -102,7 +102,7 @@
102 102 // 设备详情
103 103 const res = await getDeviceDetail(id);
104 104 deviceDetail.value = res;
105   - const { latitude, longitude, address } = res.deviceInfo;
  105 + const { latitude, longitude, address } = res.deviceInfo || {};
106 106 if (latitude) {
107 107 deviceDetailRef.value.initMap(longitude, latitude, address);
108 108 }
... ...