Selaa lähdekoodia

ios端可更新

panxingxin 5 vuotta sitten
vanhempi
commit
bdbf05eb6e
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/app/app.component.ts

+ 3 - 1
src/app/app.component.ts

@@ -188,7 +188,9 @@ export class AppComponent {
       this.statusBar.styleDefault();
       this.splashScreen.hide();
       await this.getVersionNumber()
-      await this.update.isUpdate()
+      if(this.device.platform=='Android') {
+        await this.update.isUpdate()
+      }
     });
   }
   //android通过返回按钮退出应用