From ce17d42203a17120736d796d0e83b3742c4ec441 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期二, 21 十月 2025 21:54:52 +0800
Subject: [PATCH] 2025.10.21
---
src/constant/device-type.js | 36 +++++++++++++++++++++++++++++++++++-
1 files changed, 35 insertions(+), 1 deletions(-)
diff --git a/src/constant/device-type.js b/src/constant/device-type.js
index 8d163f8..350c85b 100644
--- a/src/constant/device-type.js
+++ b/src/constant/device-type.js
@@ -9,4 +9,38 @@
// 鐢ㄧ數閲�
const TYPE4 = '31';
-export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4 };
+function typeList() {
+ if (import.meta.env.VITE_DATA_MODE == 'jingan') {
+ return [
+ {
+ label: '杞﹁浇',
+ value: '0a'
+ }
+ ];
+ } else {
+ return [
+ {
+ label: '杞﹁浇',
+ value: '0a'
+ },
+ {
+ label: '鏃犱汉鏈�',
+ value: '0b'
+ },
+ {
+ label: '鏃犱汉鑸�',
+ value: '0c'
+ },
+ {
+ label: '缃戞牸鍖�',
+ value: '0d'
+ }
+ ];
+ }
+}
+
+function typeName(type) {
+ return typeList().find((v) => v.value == type).label;
+}
+
+export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, typeName };
--
Gitblit v1.9.3