jack 3 vuotta sitten
vanhempi
commit
3622b50115
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  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) {