jack 3 년 전
부모
커밋
c74eb2e5d2
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/components/functionFan2.vue

+ 6 - 3
src/components/functionFan2.vue

@@ -233,9 +233,12 @@ export default {
       this.isCamera = true;
       let video = this.$refs["video"];
       var that = this;
-      window.requestAnimationFrame(function () {
-        that.handsFind(video);
-        that.start();
+      var f = window.requestAnimationFrame(function () {
+        window.cancelAnimationFrame(f);
+        setTimeout(function () {
+          that.handsFind(video);
+          that.start();
+        }, 1000);
       });
 
       // setInterval(() => {