diff --git a/README.md b/README.md
index 7368d5a..947b079 100644
--- a/README.md
+++ b/README.md
@@ -24,9 +24,9 @@
- [晒晒你的菜](https://docs.qq.com/sheet/DQk1vdkhFV0twQVNS?tab=dmeahc)
- [反馈建议](https://docs.qq.com/sheet/DQk1vdkhFV0twQVNS?tab=snaau2)
-### Features
+
-本项目支持 PWA,使用浏览器打开时,可将其添加到主屏幕以获得近原生 APP 的体验。
+
## 开发
diff --git a/index.html b/index.html
index e3b80d6..78b27f8 100644
--- a/index.html
+++ b/index.html
@@ -9,6 +9,12 @@
隔离食用手册
+
diff --git a/src/modules/pwa.ts b/src/modules/pwa.ts
index c0c9f82..a6dc72f 100644
--- a/src/modules/pwa.ts
+++ b/src/modules/pwa.ts
@@ -1,12 +1,13 @@
import { type UserModule } from '~/types'
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const install: UserModule = ({ isClient, router }) => {
- if (!isClient)
- return
+ // if (!isClient)
+ // return
- router.isReady().then(async () => {
- const { registerSW } = await import('virtual:pwa-register')
- registerSW({ immediate: true })
- })
+ // router.isReady().then(async () => {
+ // const { registerSW } = await import('virtual:pwa-register')
+ // registerSW({ immediate: true })
+ // })
}
diff --git a/src/pages/help.md b/src/pages/help.md
index ba27b4c..38aa066 100644
--- a/src/pages/help.md
+++ b/src/pages/help.md
@@ -19,9 +19,9 @@ title: 帮助
## **友情提示**
- 点击首页最上方的大锅图标,可清空所选食材和工具。
-- 本项目支持 PWA,使用浏览器打开时,可将其添加到主屏幕以获得近原生 APP 的体验。
+
-
+
## FAQ
diff --git a/vite.config.ts b/vite.config.ts
index 0a3e382..5bceafa 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -7,7 +7,7 @@ import Layouts from 'vite-plugin-vue-layouts'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Markdown from 'vite-plugin-md'
-import { VitePWA } from 'vite-plugin-pwa'
+// import { VitePWA } from 'vite-plugin-pwa'
import Inspect from 'vite-plugin-inspect'
import Prism from 'markdown-it-prism'
import LinkAttributes from 'markdown-it-link-attributes'
@@ -77,36 +77,36 @@ export default defineConfig({
},
}),
- // https://github.com/antfu/vite-plugin-pwa
- VitePWA({
- // use default prompt
- // registerType: 'autoUpdate',
- registerType: 'prompt',
- includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
- manifest: {
- name: '今天我们来做菜',
- short_name: '来做菜',
- theme_color: '#ffffff',
- icons: [
- {
- src: '/pwa-192x192.png',
- sizes: '192x192',
- type: 'image/png',
- },
- {
- src: '/pwa-512x512.png',
- sizes: '512x512',
- type: 'image/png',
- },
- {
- src: '/pwa-512x512.png',
- sizes: '512x512',
- type: 'image/png',
- purpose: 'any maskable',
- },
- ],
- },
- }),
+ // // https://github.com/antfu/vite-plugin-pwa
+ // VitePWA({
+ // // use default prompt
+ // // registerType: 'autoUpdate',
+ // registerType: 'prompt',
+ // includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
+ // manifest: {
+ // name: '今天我们来做菜',
+ // short_name: '来做菜',
+ // theme_color: '#ffffff',
+ // icons: [
+ // {
+ // src: '/pwa-192x192.png',
+ // sizes: '192x192',
+ // type: 'image/png',
+ // },
+ // {
+ // src: '/pwa-512x512.png',
+ // sizes: '512x512',
+ // type: 'image/png',
+ // },
+ // {
+ // src: '/pwa-512x512.png',
+ // sizes: '512x512',
+ // type: 'image/png',
+ // purpose: 'any maskable',
+ // },
+ // ],
+ // },
+ // }),
// https://github.com/antfu/vite-plugin-inspect
// Visit http://localhost:3333/__inspect/ to see the inspector