From f04f34fe6ce5bd9cd1cd1a682ad66133fa702531 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 17 六月 2024 13:47:53 +0800
Subject: [PATCH] 1

---
 src/views/mdc/realtime-status/index.vue |   11 ++++++-----
 src/views/mdc/station-live.vue          |    8 +++++---
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/views/mdc/realtime-status/index.vue b/src/views/mdc/realtime-status/index.vue
index fdb35ae..504c737 100644
--- a/src/views/mdc/realtime-status/index.vue
+++ b/src/views/mdc/realtime-status/index.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-04-09 22:11:21
- * @LastEditors: Sneed
- * @LastEditTime: 2024-04-09 22:12:14
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-06-17 13:46:52
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/realtime-status/index.vue
  瀹炴椂鐪嬫澘
 -->
@@ -280,7 +280,6 @@
 									})
 								})
 							}
-							
 						})
 						this.total = res.data.total;
 						//鍙戦�亀ebsocket
@@ -332,8 +331,10 @@
 									    		item1.code = v.msg;
 									    		item1.color = "#370C0D";
 									    	}else {
-									    		item1.code = eventData.data[item1.key].v;
-									        	item1.color = "#75C0C0";
+												if(eventData.data[item1.key]) {
+													item1.code = eventData.data[item1.key].v;
+									        		item1.color = "#75C0C0";
+												}
 									    	}
 									    }
 					        		})
diff --git a/src/views/mdc/station-live.vue b/src/views/mdc/station-live.vue
index acc9866..c45a40a 100644
--- a/src/views/mdc/station-live.vue
+++ b/src/views/mdc/station-live.vue
@@ -2,7 +2,7 @@
  * @Author: lzhe lzhe@example.com
  * @Date: 2024-03-26 10:28:33
  * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-06-05 11:37:17
+ * @LastEditTime: 2024-06-17 13:47:17
  * @FilePath: /smart-web/src/views/master/person/main/index.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -681,8 +681,10 @@
 							    		item.codeName = v.msg;
 							    		item.color = "#370C0D";
 							    	}else {
-							    		item.codeName = eventData.data[item.name].v;
-							        	item.color = "#75C0C0";
+										if(eventData.data[item.name]) {
+											item.codeName = eventData.data[item.name].v;
+							        		item.color = "#75C0C0";
+										}
 							    	}
 							    }
 							});

--
Gitblit v1.9.3