微信小程序 警告問題


⚠ 設置 enable-flex 屬性以使 flexbox 布局生效

🔧 添加 enable-flex="true"屬性

<scroll-view enable-flex="true"> ... </scroll-view>

https://blog.csdn.net/weixin_44198965/article/details/109544500

⚠ [sitemap 索引情況提示] 根據 sitemap 的規則[0],當前頁面 [pages/loading/loading] 將被索引

🔧 修改 project.config.json 配置文件中checkSiteMap 為 false

{
  "description": "項目配置文件",
  "packOptions": {
    "ignore": []
  },
  "setting": {
    "urlCheck": true,
    "es6": true,
    "enhance": true,
    "postcss": true,
    "preloadBackgroundData": false,
    "minified": true,
    "newFeature": false,
    "coverView": true,
    "nodeModules": false,
    "autoAudits": false,
    "showShadowRootInWxmlPanel": true,
    "scopeDataCheck": false,
    "uglifyFileName": false,
    "checkInvalidKey": true,
    "checkSiteMap": false, // 默認為true,改成false即可
    "uploadWithSourceMap": true,
    "compileHotReLoad": false,
    "useMultiFrameRuntime": false,
    "useApiHook": true,
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath": ""
    },
    "enableEngineNative": false,
    "bundle": false,
    "useIsolateContext": true,
    "useCompilerModule": true,
    "userConfirmedUseCompilerModuleSwitch": false,
    "userConfirmedBundleSwitch": false,
    "packNpmManually": false,
    "packNpmRelationList": [],
    "minifyWXSS": true
  },
  // ...
}

https://blog.csdn.net/qq_29483485/article/details/108576099


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM