feat: add pwa install button (#27)

* feat: add pwa tooltip

* feat: add pwa install button
This commit is contained in:
云游君
2022-04-30 20:39:24 +08:00
committed by GitHub
parent 50156534c2
commit 2712616683
9 changed files with 154 additions and 68 deletions

4
src/shims.d.ts vendored
View File

@@ -1,6 +1,10 @@
declare interface Window {
// extend the window
wx: any
/**
* pwa install prompt event
*/
deferredPrompt: Event | any
}
// with vite-plugin-md, markdowns can be treat as Vue components