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 ++++++-----
1 files changed, 6 insertions(+), 5 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";
+ }
}
}
})
--
Gitblit v1.9.3