mo 1 年之前
父节点
当前提交
58ceff612b
共有 3 个文件被更改,包括 6 次插入3 次删除
  1. 4 1
      dev-dist/sw.js
  2. 1 1
      src/views/login/index.tsx
  3. 1 1
      vite.config.ts

+ 4 - 1
dev-dist/sw.js

@@ -78,8 +78,11 @@ define(['./workbox-87348480'], (function (workbox) { 'use strict';
    * See https://goo.gl/S9QRab
    */
   workbox.precacheAndRoute([{
+    "url": "registerSW.js",
+    "revision": "3ca0b8505b4bec776b69afdba2768812"
+  }, {
     "url": "index.html",
-    "revision": "0.21g8of8l2m8"
+    "revision": "0.9ceom85f6h8"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 1 - 1
src/views/login/index.tsx

@@ -135,7 +135,7 @@ export default defineComponent({
         </div>
         <div class={styles['view-account-form']}>
           <img class={styles.colLogo} src={colLogo}></img>
-          11333344444
+          11333355555
           {isForgot.value ? (
             <NTabs
               key="forgotPassword"

+ 1 - 1
vite.config.ts

@@ -65,7 +65,7 @@ export default defineConfig({
       workbox: {
         runtimeCaching: [
           {
-            urlPattern: /(.*?)\.(js|css|ts|html)/, // js /css /ts静态资源缓存
+            urlPattern: /(.*?)\.(js|css|ts|tsx|html)/, // js /css /ts静态资源缓存
             handler: 'NetworkOnly',
             options: {
               cacheName: 'js-css-cache'