소스 검색

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

wzh 2 년 전
부모
커밋
8c46fcafe8
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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;
             }
           }
         }