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

@ -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 || '未知类型'