Ver código fonte

Revert "chore: 都不生效"

This reverts commit c820ebf2d01036567ca1d2ace1f2cfac639c7cd3.
feige996 11 meses atrás
pai
commit
aca9b3337d
4 arquivos alterados com 2 adições e 25 exclusões
  1. 0 1
      manifest.config.ts
  2. 0 16
      pages.config.ts
  3. 2 5
      src/manifest.json
  4. 0 3
      src/pages.json

+ 0 - 1
manifest.config.ts

@@ -118,7 +118,6 @@ export default defineManifestConfig({
       minified: true,
     },
     usingComponents: true,
-    // lazyCodeLoading: 'requiredComponents', // 微信小程序懒加载配置
     // __usePrivacyCheck__: true,
   },
   'mp-alipay': {

+ 0 - 16
pages.config.ts

@@ -48,20 +48,4 @@ export default defineUniPages({
       },
     ],
   },
-  // 微信小程序特定配置
-  // 'mp-weixin': {
-  //   lazyCodeLoading: 'requiredComponents', // 微信小程序懒加载配置
-  // },
-  // 使用条件编译添加微信小程序特定配置
-  // #ifdef MP-WEIXIN
-  // lazyCodeLoading: 'requiredComponents',
-  // #endif
-  // 使用 custom 字段注入原生微信小程序配置
-  // custom: {
-  //   mpWeixin: {
-  //     appJson: {
-  //       lazyCodeLoading: 'requiredComponents',
-  //     },
-  //   },
-  // },
 })

+ 2 - 5
src/manifest.json

@@ -85,12 +85,9 @@
   "mp-weixin": {
     "appid": "wxa2abb91f64032a2b",
     "setting": {
-      "urlCheck": false,
-      "es6": true,
-      "minified": true
+      "urlCheck": false
     },
-    "usingComponents": true,
-    "lazyCodeLoading": "requiredComponents"
+    "usingComponents": true
   },
   "mp-alipay": {
     "usingComponents": true,

+ 0 - 3
src/pages.json

@@ -44,9 +44,6 @@
       }
     ]
   },
-  "mp-weixin": {
-    "lazyCodeLoading": "requiredComponents"
-  },
   "pages": [
     {
       "path": "pages/index/index",