seimin il y a 1 an
Parent
commit
8677dfdc72

+ 1 - 1
src/app/views/disinfection-supply/disinfection-supply.component.ts

@@ -39,7 +39,7 @@ export class DisinfectionSupplyComponent implements OnInit, OnDestroy {
39 39
   ngOnDestroy(){
40 40
     clearTimeout(this.timer);
41 41
     clearTimeout(this.resizeTimer);
42
-    this.mySwiper.destroy();
42
+    this.mySwiper && this.mySwiper.destroy();
43 43
     window.onresize = null;
44 44
   }
45 45