Explorar o código

ios端可更新

panxingxin %!s(int64=5) %!d(string=hai) anos
pai
achega
bdbf05eb6e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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通过返回按钮退出应用