Parcourir la source

修复煎药机无法停止挤压的bug

wzh il y a 2 ans
Parent
commit
8c46fcafe8
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      pages/device/detail.vue

+ 5 - 0
pages/device/detail.vue

@@ -829,6 +829,7 @@ export default {
   },
   onLoad: function(opt) {
     this.id = opt.id;
+    debugger;
     // this.id = 61;
     this.connectMqtt();
     this.getDetail();
@@ -2311,6 +2312,8 @@ export default {
             if(shadow == 1){
               this.pressTurn = 1;
               this.resetTurn = 0;
+            }else{
+              this.pressTurn = 0;
             }
           }
 
@@ -2322,6 +2325,8 @@ export default {
             if(shadow == 1){
               this.resetTurn = 1;
               this.pressTurn = 0;
+            }else{
+              this.resetTurn = 0;
             }
           }
         }