feat: update PWA installation logic, enhance app versioning, and streamline environment configurations
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<div class="h-svh w-svw flex flex-col items-center justify-center">
|
||||
{{ requireInstall }}
|
||||
{{ pwaInstalled() }}
|
||||
{{ canInstall() }}
|
||||
<img [src]="logo" class="w-32 animate-pulse" />
|
||||
@if (requireInstall && !pwaInstalled()) {
|
||||
<div class="mt-6 flex flex-col items-center gap-3">
|
||||
|
||||
@@ -30,7 +30,7 @@ export class PosSplashComponent {
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (!this.requireInstall || this.pwaInstalled() || this.installPromptShown) {
|
||||
this.getData();
|
||||
// this.getData();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,9 +30,7 @@
|
||||
<router-outlet></router-outlet>
|
||||
}
|
||||
} @else {
|
||||
@defer (when !isAuth()) {
|
||||
<pos-pages-layout />
|
||||
}
|
||||
<pos-pages-layout />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user