From 74cddec479d078a32928a536a7449e074b7fae4e Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 8 Jan 2024 09:55:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20PWA=20=E5=92=8C?= =?UTF-8?q?=E5=89=8D=E5=90=8E=E7=AB=AF=E5=90=8C=E4=B8=80=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dff649d8e..6c9b30671 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.30", + "version": "2.14.31", "private": true, "scripts": { "dev": "vite --host", diff --git a/vite.config.ts b/vite.config.ts index 79aa15ae3..999bba329 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -94,7 +94,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ], }, workbox: { - navigateFallbackDenylist: [/^\/(api|download)\/.+/], + navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/], // globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'], runtimeCaching: [ {