Explorar o código

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

wzh %!s(int64=2) %!d(string=hai) anos
pai
achega
8c46fcafe8
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;
             }
           }
         }