feat: improve PWA update mechanism with visibility check

This commit is contained in:
2026-02-27 04:50:39 +00:00
parent 98d76e3a35
commit bebb63c1de
2 changed files with 96 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import Header from './components/Header.vue'
import Footer from './components/Footer.vue'
import Sidebar from './components/Sidebar.vue'
import InstallPrompt from './components/InstallPrompt.vue'
import ReloadPrompt from './components/ReloadPrompt.vue'
const isSidebarOpen = ref(window.innerWidth >= 768)
const router = useRouter()
@@ -53,6 +54,7 @@ onUnmounted(() => {
</div>
<Footer />
<InstallPrompt />
<ReloadPrompt />
</template>
<style scoped>