From d205764a3ebe073b8302e8faf9345b74ae3350df Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 11 十一月 2024 17:12:35 +0800
Subject: [PATCH] 优化初始化进入界面时,默认监测因子选项为PM颗粒物等常用因子

---
 src/constant/device-type.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/constant/device-type.js b/src/constant/device-type.js
index 6316134..1768fb0 100644
--- a/src/constant/device-type.js
+++ b/src/constant/device-type.js
@@ -66,7 +66,7 @@
 }
 
 function typeName(type) {
-  return typeList().find((v) => (v.value = type)).label;
+  return typeList().find((v) => v.value == type).label;
 }
 
 export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, typeName, deviceList };

--
Gitblit v1.9.3