Browse Source

优化虚拟实验室智能家居内的窗帘命令识别

liyanbo 1 tháng trước cách đây
mục cha
commit
164d616b5c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/blockly/Blockly2.vue

+ 2 - 2
src/views/blockly/Blockly2.vue

@@ -830,9 +830,9 @@ const aiService = {
   controlCurtain: withErrorHandling('控制窗帘状态', async function(isOn) {
     // 根据传入的布尔值决定是打开还是关闭窗帘
     if (isOn) {
-      this.closeCurtain();
-    } else {
       this.openCurtain();
+    } else {
+      this.closeCurtain();
     }
     return isOn;
   }, '控制窗帘状态失败'),