Browse Source

Update vite.config.ts

lex-xin 3 months ago
parent
commit
c55f0e2838
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vite.config.ts

+ 1 - 1
vite.config.ts

@@ -67,7 +67,7 @@ export default defineConfig(() => {
         registerType: 'prompt',
         includeAssets: ['./logo.png'],
         workbox: {
-          skipWaiting: true, // 强制跳过等待
+          skipWaiting: false, // 强制跳过等待
           clientsClaim: true, // 让新的 Service Worker 立即控制所有页面
           navigateFallbackDenylist: [/^\/classroom/] // 避免在路由中使用 navigateFallback 时,导致路由无法正常跳转
         },