【代码优化】IoT: 场景联动彻底修复索引重用问题

This commit is contained in:
puhui999
2025-03-29 14:34:56 +08:00
parent f52f4bcc36
commit c8fce1e254
2 changed files with 12 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ interface TriggerCondition {
// 触发器配置
interface TriggerConfig {
key: any // 解决组件索引重用
type: number // 触发类型
productKey: string // 产品标识
deviceNames: string[] // 设备名称数组
@@ -98,6 +99,7 @@ interface ActionAlert {
// 执行器配置
interface ActionConfig {
key: any // 解决组件索引重用
type: number // 执行类型
deviceControl?: ActionDeviceControl // 设备控制
alert?: ActionAlert // 告警执行