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> </script>
<template> <template>
<VitePwaManifest /> <!-- <VitePwaManifest /> -->
<!-- https://ionic.nuxtjs.org/cookbook/customising-app-vue --> <!-- https://ionic.nuxtjs.org/cookbook/customising-app-vue -->
<!-- <NuxtLayout> <!-- <NuxtLayout>
<NuxtLoadingIndicator /> <NuxtLoadingIndicator />

View File

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