mo 1 년 전
부모
커밋
015a75deea
3개의 변경된 파일191개의 추가작업 그리고 259개의 파일을 삭제
  1. 177 257
      package-lock.json
  2. 12 0
      src/App.tsx
  3. 2 2
      vite.config.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 177 - 257
package-lock.json


+ 12 - 0
src/App.tsx

@@ -82,6 +82,18 @@ export default defineComponent({
       window.open('https://www.google.cn/intl/zh-CN/chrome/');
     };
 
+    const forceSWupdate = () => {
+
+      if ('serviceWorker' in navigator) {
+        console.log(navigator.serviceWorker, ' navigator.serviceWorker')
+        navigator.serviceWorker.getRegistrations().then(function (registrations) {
+          for (let registration of registrations) {
+            registration.update()
+          }
+        })
+      }
+    }
+    forceSWupdate()
     return () => (
       <>
         <NConfigProvider

+ 2 - 2
vite.config.ts

@@ -22,8 +22,8 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-const proxyUrl = 'https://dev.kt.colexiu.com/';
-// const proxyUrl = 'https://test.lexiaoya.cn';
+// const proxyUrl = 'https://dev.kt.colexiu.com/';
+const proxyUrl = 'https://test.lexiaoya.cn';
 export default defineConfig({
   base: './',
   plugins: [

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.