jack 3 năm trước cách đây
mục cha
commit
3622b50115
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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) {