From bcdac9d9b25d2d897a2dee75c607f7dcbd10697f Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 14 Aug 2025 17:27:30 +0800 Subject: [PATCH] fix: delete hook update --- frontend_nuxt/plugins/soft-manifest.client.ts | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 frontend_nuxt/plugins/soft-manifest.client.ts diff --git a/frontend_nuxt/plugins/soft-manifest.client.ts b/frontend_nuxt/plugins/soft-manifest.client.ts deleted file mode 100644 index 0ee157258..000000000 --- a/frontend_nuxt/plugins/soft-manifest.client.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineNuxtPlugin } from 'nuxt/app' - -export default defineNuxtPlugin((nuxtApp) => { - // 覆盖默认行为:收到 manifest 更新时,不立刻在路由切换里刷新 - nuxtApp.hooks.hook('app:manifest:update', () => { - // todo 选择:弹个提示,让用户点击刷新;或延迟到页面隐藏时再刷新 - // 例如:document.addEventListener('visibilitychange', () => { if (document.hidden) location.reload() }) - }) -})