From d74080d6b0a4d0b5ee6d68cd80cac01aab7ce1dd Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 4 Aug 2025 22:13:17 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=9A=E3=80=90iot=20=E7=89=A9?= =?UTF-8?q?=E8=81=94=E7=BD=91=E3=80=91=E5=9C=BA=E6=99=AF=E8=81=94=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../configs/ConditionGroupContainerConfig.vue | 2 ++ .../form/configs/MainConditionInnerConfig.vue | 2 +- .../scene/form/inputs/ServiceParamsInput.vue | 23 +++++++++++-------- .../scene/form/sections/ActionSection.vue | 1 + .../scene/form/sections/TriggerSection.vue | 1 + .../form/selectors/ActionTypeSelector.vue | 2 ++ .../scene/form/selectors/ServiceSelector.vue | 2 ++ src/views/iot/rule/scene/index.vue | 4 ++++ 8 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/views/iot/rule/scene/form/configs/ConditionGroupContainerConfig.vue b/src/views/iot/rule/scene/form/configs/ConditionGroupContainerConfig.vue index 38200799d..0045de363 100644 --- a/src/views/iot/rule/scene/form/configs/ConditionGroupContainerConfig.vue +++ b/src/views/iot/rule/scene/form/configs/ConditionGroupContainerConfig.vue @@ -155,11 +155,13 @@ const addSubGroup = () => { } // 检查是否达到最大子组数量限制 + // TODO @puhui999:最大的数量限制 if (container.value?.length >= maxSubGroups) { return } // 使用 nextTick 确保响应式更新完成后再添加新的子组 + // TODO @puhui999:这里 nextTick 要不要 await nextTick(() => { if (container.value) { container.value.push([]) diff --git a/src/views/iot/rule/scene/form/configs/MainConditionInnerConfig.vue b/src/views/iot/rule/scene/form/configs/MainConditionInnerConfig.vue index 07feb1d51..9906160b4 100644 --- a/src/views/iot/rule/scene/form/configs/MainConditionInnerConfig.vue +++ b/src/views/iot/rule/scene/form/configs/MainConditionInnerConfig.vue @@ -1,13 +1,13 @@