chore(device): 设备卡片暂只保留网络配置按钮

参数配置/服务器配置尚未接入,先从卡片隐藏,原键值以注释保留待后续恢复。
This commit is contained in:
ozh 2026-10-12 16:15:40 +08:00
parent 3791865419
commit 1a56f49205
1 changed files with 3 additions and 1 deletions

View File

@ -2,9 +2,11 @@ import type { BleDevice } from '@/ble/hooks/useBle'
// 设备型号 → 启用的按钮 key 列表。
// 后续如需让其他型号裁剪按钮,只需新增映射条目。
// 参数配置/服务器配置尚未接入,先从卡片隐藏(原 ['WIFI', 'PARAMS', 'SERVER'])
export const DEVICE_ACTION_KEYS: Record<string, readonly string[]> = Object.freeze({
EP832: ['WIFI'],
DEFAULT: ['WIFI', 'PARAMS', 'SERVER']
DEFAULT: ['WIFI']
// DEFAULT: ['WIFI', 'PARAMS', 'SERVER']
})
// 按钮注册表:label / 忙态文案。