jack 3 年 前
コミット
3622b50115
1 ファイル変更4 行追加2 行削除
  1. 4 2
      src/components/functionFan2.vue

+ 4 - 2
src/components/functionFan2.vue

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