Browse Source

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

wzh 2 years atrás
parent
commit
8c46fcafe8
1 changed files with 5 additions and 0 deletions
  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;
             }
           }
         }