1
0
mirror of synced 2026-03-22 12:44:39 +08:00

fix: disable pwa to avoid page refresh

This commit is contained in:
YunYouJun
2025-10-06 22:16:17 +08:00
parent 0c79b3d0a7
commit 0549ef8115
2 changed files with 5 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ onMounted(() => {
</script>
<template>
<VitePwaManifest />
<!-- <VitePwaManifest /> -->
<!-- https://ionic.nuxtjs.org/cookbook/customising-app-vue -->
<!-- <NuxtLayout>
<NuxtLoadingIndicator />

View File

@@ -1,5 +1,5 @@
import process from 'node:process'
import { pwa } from './app/config/pwa'
// import { pwa } from './app/config/pwa'
import { appDescription } from './app/constants/index'
// for cloudflare
@@ -23,7 +23,7 @@ export default defineNuxtConfig({
'@unocss/nuxt',
'@pinia/nuxt',
'@nuxtjs/color-mode',
'@vite-pwa/nuxt',
// '@vite-pwa/nuxt',
'@nuxt/eslint',
'@nuxt/test-utils/module',
'@yunlefun/vue/nuxt',
@@ -121,10 +121,11 @@ export default defineNuxtConfig({
},
config: {
mode: 'ios',
backButtonText: '返回',
},
},
pwa,
// pwa,
/**
* @see https://scripts.nuxt.com/scripts/tracking/google-tag-manager