Implement PWA optimizations with advanced caching and install features

Co-authored-by: jxxghp <jxxghp@163.com>
This commit is contained in:
Cursor Agent
2025-07-07 13:46:09 +00:00
co-authored by jxxghp
parent 2ffd6f7430
commit 6cb6a5822b
10 changed files with 1217 additions and 153 deletions
+3
View File
@@ -10,6 +10,7 @@ import { checkAndEmitUnreadMessages } from '@/utils/badge'
import { preloadImage } from './@core/utils/image'
import { globalLoadingStateManager } from '@/utils/loadingStateManager'
import { addBackgroundTimer, removeBackgroundTimer } from '@/utils/backgroundManager'
import PWAInstallPrompt from '@/components/PWAInstallPrompt.vue'
// 生效主题
const { global: globalTheme } = useTheme()
@@ -254,6 +255,8 @@ onUnmounted(() => {
<!-- 页面内容 -->
<VApp :class="{ 'transparent-app': isTransparentTheme }">
<RouterView />
<!-- PWA安装提示 -->
<PWAInstallPrompt />
</VApp>
</div>
</template>