From 4b275f2093954cc58bbc23e4fc67e67d6fe81c0b Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期日, 13 七月 2025 22:46:35 +0800
Subject: [PATCH] 2025.7.13 污染动态溯源

---
 src/views/sourcetrace/SourceTrace.vue |    2 +-
 src/api/index.js                      |    8 ++++----
 src/components.d.ts                   |    1 -
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index efcd5a1..1792861 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -13,10 +13,10 @@
 }
 
 if (debug) {
-  ip1 = 'http://192.168.0.103:8084/';
-  // ip1 = 'http://localhost:8084/';
-  ws = `192.168.0.103:9031`;
-  // ws = `localhost:9031`;
+  // ip1 = 'http://192.168.0.103:8084/';
+  ip1 = 'http://localhost:8084/';
+  // ws = `192.168.0.103:9031`;
+  ws = `localhost:9031`;
 }
 
 const $http = axios.create({
diff --git a/src/components.d.ts b/src/components.d.ts
index 8ecc1ef..80dc883 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -39,7 +39,6 @@
     ElFormItem: typeof import('element-plus/es')['ElFormItem']
     ElIcon: typeof import('element-plus/es')['ElIcon']
     ElInput: typeof import('element-plus/es')['ElInput']
-    ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
     ElLink: typeof import('element-plus/es')['ElLink']
     ElOption: typeof import('element-plus/es')['ElOption']
     ElPagination: typeof import('element-plus/es')['ElPagination']
diff --git a/src/views/sourcetrace/SourceTrace.vue b/src/views/sourcetrace/SourceTrace.vue
index 87768df..a00879a 100644
--- a/src/views/sourcetrace/SourceTrace.vue
+++ b/src/views/sourcetrace/SourceTrace.vue
@@ -242,7 +242,7 @@
 function dealMsg(data) {
   const { type, content } = websocketMsgParser.parseMsg(data);
   const obj = reactive(JSON.parse(content));
-  if (obj.deviceCode == props.deviceCode) {
+  if (obj[0].deviceCode == props.deviceCode) {
     obj._type = type;
     dealObj(obj);
   }

--
Gitblit v1.9.3