Browse Source

feat:update

gemercheung 1 năm trước cách đây
mục cha
commit
93c55c7f84
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      miniprogram/components/ar-tracker/ar-tracker.js

+ 5 - 2
miniprogram/components/ar-tracker/ar-tracker.js

@@ -151,8 +151,11 @@ Component({
           isVideo12Start: false
         })
         console.warn('video12 onEnd')
-        this.animator1.pauseToFrame(this.data.animator1Name, 0);
-        this.animator1.stop(this.data.animator1Name);
+        if (this.animator1) {
+          this.animator1.pauseToFrame(this.data.animator1Name, 0);
+          this.animator1.stop(this.data.animator1Name);
+        }
+
       }
       const animator = el.getComponent("animator");