fix: disable pwa to avoid page refresh
This commit is contained in:
@@ -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 />
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user