tongshanglei 3 years ago
parent
commit
a98536d9ba
1 changed files with 9 additions and 19 deletions
  1. 9 19
      src/App.vue

+ 9 - 19
src/App.vue

@@ -132,26 +132,16 @@ export default {
     let number=0
     var that = this;
     let s=Math.round(Math.random()*300)
-    console.log('s',s)
-     this.timer = setInterval(() => {
-       number++
-       if(number==s){
-         number=0
-          s=Math.round(Math.random()*300)
-          console.log('s',s)
+    // this.timer = setInterval(() => {
+    //    number++
+    //    if(number==s){
+    //      number=0
+    //       s=Math.round(Math.random()*300)
+    //       that.showAlarmBox=true
+    //    }
+    // }, 1000)
 
-          that.showAlarmBox=true
-       }
-    }, 1000)
-
-  // this.fn();
-  //     let s=Math.round(Math.random()*10) *1000
-  //     console.log(s)
-  //     this.timer1 = setInterval(() => {
-  //         this.showAlarmBox=true
-  //         s=Math.round(Math.random()*180) *1000+30000
-  //         console.log(s)
-  //     }, s)
+ 
      
   },
   methods:{