feat: add install pwa button

This commit is contained in:
YunYouJun
2023-07-30 14:03:58 +08:00
parent 7fd788a29b
commit cad0bc887f
4 changed files with 19 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
// import { installPrompt } from './utils/pwa'
import { installPrompt } from './utils/pwa'
import { appName } from '~/constants'
// https://github.com/vueuse/head
@@ -15,7 +15,9 @@ useHead({
],
})
// installPrompt()
onMounted(() => {
installPrompt()
})
</script>
<template>