review:【iot 物联网】场景联动的逻辑

This commit is contained in:
YunaiV
2025-08-04 22:13:17 +08:00
parent 9ca86c292b
commit d74080d6b0
8 changed files with 27 additions and 10 deletions

View File

@ -146,6 +146,7 @@ const createDefaultActionData = (): ActionFormData => {
}
// 配置常量
// TODO @puhui999去掉最大注释风格改下
const maxActions = 5
// 工具函数

View File

@ -121,6 +121,7 @@ const triggers = useVModel(props, 'triggers', emit)
const triggerTypeOptions = getTriggerTypeOptions()
// 工具函数
// TODO @puhui999这里是不是重复了哈
const getTriggerTypeLabel = (type: number): string => {
const option = triggerTypeOptions.find((opt) => opt.value === type)
return option?.label || '未知类型'