#
whycq
2024-11-22 6741811c83a4b628e59d5d90a45ce407046f1139
Monitor-APP/pages/home/home.vue
@@ -442,20 +442,20 @@
            
         },1000*60*60*4)
         
         setInterval(()=> {
            setTimeout(()=>{
               var time = new Date();
               var hh = time.getHours();
               var mm = time.getMinutes();
               if(hh > this.oldHours && mm >this.oldMin && this.oldMin - mm < 55){
                  plus.runtime.restart();
               }
               if(mm >this.oldMin && mm - this.oldMin >2){
                  plus.runtime.restart();
               }
            },100)
         // setInterval(()=> {
         //    setTimeout(()=>{
         //       var time = new Date();
         //       var hh = time.getHours();
         //       var mm = time.getMinutes();
         //       if(hh > this.oldHours && mm >this.oldMin && this.oldMin - mm < 55){
         //          plus.runtime.restart();
         //       }
         //       if(mm >this.oldMin && mm - this.oldMin >2){
         //          plus.runtime.restart();
         //       }
         //    },100)
            
         },1000*30)
         // },1000*30)
      },
      created() {
         let that = this