소스 검색

修改pwa 安卓下载提示

ansoni 1 개월 전
부모
커밋
f4c0c3c187
4개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 1
      package.json
  2. 6 6
      pnpm-lock.yaml
  3. 1 1
      src/hooks/useDesktop.tsx
  4. 1 1
      src/utils/server/index.ts

+ 1 - 1
package.json

@@ -24,7 +24,6 @@
   },
   "dependencies": {
     "@lucky-canvas/react": "^0.1.13",
-    "@next/bundle-analyzer": "^15.3.2",
     "@number-flow/react": "^0.5.5",
     "ahooks": "^3.8.0",
     "antd-mobile": "^5.37.1",
@@ -48,6 +47,7 @@
     "zustand": "^4.5.4"
   },
   "devDependencies": {
+    "@next/bundle-analyzer": "^15.3.3",
     "@types/js-cookie": "^3.0.6",
     "@types/node": "^20.14.10",
     "@types/react": "^18.3.3",

+ 6 - 6
pnpm-lock.yaml

@@ -11,9 +11,6 @@ importers:
       '@lucky-canvas/react':
         specifier: ^0.1.13
         version: 0.1.13
-      '@next/bundle-analyzer':
-        specifier: ^15.3.2
-        version: 15.3.2
       '@number-flow/react':
         specifier: ^0.5.5
         version: 0.5.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@@ -78,6 +75,9 @@ importers:
         specifier: ^4.5.4
         version: 4.5.5(@types/react@18.3.18)(immer@10.1.1)(react@18.3.1)
     devDependencies:
+      '@next/bundle-analyzer':
+        specifier: ^15.3.3
+        version: 15.3.3
       '@types/js-cookie':
         specifier: ^3.0.6
         version: 3.0.6
@@ -440,8 +440,8 @@ packages:
   '@lucky-canvas/react@0.1.13':
     resolution: {integrity: sha512-4M2bHOn5lEBubqDXXHKONnAERr3O4YIbQ8Q8QynmbD0DeSk/VQewBAzx4RopHr3Fe0dcN98YmvwaxqNl39OR7w==}
 
-  '@next/bundle-analyzer@15.3.2':
-    resolution: {integrity: sha512-zY5O1PNKNxWEjaFX8gKzm77z2oL0cnj+m5aiqNBgay9LPLCDO13Cf+FJONeNq/nJjeXptwHFT9EMmTecF9U4Iw==, tarball: https://registry.npmmirror.com/@next/bundle-analyzer/-/bundle-analyzer-15.3.2.tgz}
+  '@next/bundle-analyzer@15.3.3':
+    resolution: {integrity: sha512-9gddnjACK6yOa5IkmeFyzcwZh2rscsb6ZspTd7tymPYKQM96fJuKjn9HrRtPNKiMm7ExKNadAJqREmHdBgHZ9A==, tarball: https://registry.npmmirror.com/@next/bundle-analyzer/-/bundle-analyzer-15.3.3.tgz}
 
   '@next/env@14.2.4':
     resolution: {integrity: sha512-3EtkY5VDkuV2+lNmKlbkibIJxcO4oIHEhBWne6PaAp+76J9KoSsGvNikp6ivzAT8dhhBMYrm6op2pS1ApG0Hzg==}
@@ -2977,7 +2977,7 @@ snapshots:
     dependencies:
       lucky-canvas: 1.7.27
 
-  '@next/bundle-analyzer@15.3.2':
+  '@next/bundle-analyzer@15.3.3':
     dependencies:
       webpack-bundle-analyzer: 4.10.1
     transitivePeerDependencies:

+ 1 - 1
src/hooks/useDesktop.tsx

@@ -25,7 +25,7 @@ const useDesktop = (source: "page" | "components") => {
                         <i className={"iconfont icon-guanbi"}></i>
                     </div>
                 ),
-                image: isIOS() ? "/store/ios.png" : "/store/ios.png",
+                image: isIOS() ? "/store/ios.png" : "/store/android.jpg",
                 actions: [],
             });
         }

+ 1 - 1
src/utils/server/index.ts

@@ -66,7 +66,7 @@ class Server {
                 ...other,
             })
                 .then((res) => {
-                    console.log(`🚀🚀🚀🚀🚀-> in index.ts on 69 ${url}:`, res);
+                    // console.log(`🚀🚀🚀🚀🚀-> in index.ts on 69 ${url}:`, res);
                     return res.json();
                 })
                 .catch((error) => {