From d4479dda8ec5f2bdcca0201f4dfb0d676ef8349c Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 23 Mar 2023 19:27:24 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs

---
 src/views/home/components/bottomContainer.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/home/components/bottomContainer.vue b/src/views/home/components/bottomContainer.vue
index c09000a..c5289bf 100644
--- a/src/views/home/components/bottomContainer.vue
+++ b/src/views/home/components/bottomContainer.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-01-13 15:52:59
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-02-24 14:35:04
+ * @LastEditTime: 2023-03-22 16:37:04
  * @FilePath: \srs-police-affairs\src\views\home\components\bottomContainer.vue
  * @Description: 
  * 
@@ -332,7 +332,7 @@
             getAnswerPolices({ deptId: this.policeStaionID != '' ? this.policeStaionID : this.userInfo.dept_id }).then(res => {
                 this.policeSituationRealtimeArr = []
 
-                if (res.data.result.length > 0) {
+                if (res.data.result && res.data.result.length) {
                     this.policeSituationRealtimeArr = res.data.result.map((item, index) => {
                         return { ...item, index: index + 1, lng: item.ZDDWXZB, lat: item.ZDDWYZB }
                     })

--
Gitblit v1.9.3