jack 3 gadi atpakaļ
vecāks
revīzija
3622b50115
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      src/components/functionFan2.vue

+ 4 - 2
src/components/functionFan2.vue

@@ -293,8 +293,10 @@ export default {
         });
       } catch (e) {
         console.log(e);
-        this.detector.dispose();
-        this.detector = null;
+        try {
+          this.detector.dispose();
+          this.detector = null;
+        } catch (e) {}
       }
       console.log(hands);
       if (hands.length > 0 && this.isCamera) {