Browse Source

数据为空时处理

LXXXY 5 years ago
parent
commit
a8ba8de44d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/point/report/objectInstance.vue

+ 1 - 1
src/components/point/report/objectInstance.vue

@@ -75,7 +75,7 @@ export default {
               }
               //获取设备信息
               getEquipByEqID(pa, equipMsg => {
-                if (equipMsg.Content[0].LocationJson && equipMsg.Content[0].FloorId) {
+                if (equipMsg.Content[0] && equipMsg.Content[0].LocationJson && equipMsg.Content[0].FloorId) {
                   let canvasOption = {
                     /** 标记的id  */
                     Id: equipMsg.Content[0].EquipID,