From 3970cefa60ea7e5d899b7475345b65646c19c110 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 20 三月 2025 15:17:05 +0800 Subject: [PATCH] 走航融合(待完成) --- src/constant/device-type.js | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/constant/device-type.js b/src/constant/device-type.js index 6291f18..1768fb0 100644 --- a/src/constant/device-type.js +++ b/src/constant/device-type.js @@ -30,6 +30,10 @@ { label: '鏃犱汉鑸�', value: '0c' + }, + { + label: '缃戞牸鍖�', + value: '0d' } ]; } @@ -61,4 +65,8 @@ } } -export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, deviceList }; +function typeName(type) { + return typeList().find((v) => v.value == type).label; +} + +export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, typeName, deviceList }; -- Gitblit v1.9.3