我們在開發小程序時,會有以下的類似警告,
根據 sitemap 的規則[0],當前頁面 [pages/index/index] 將被索引
如需去掉,則可以在小程序項目配置文件project.config.json的setting中配置字段checkSiteMap為 false。
即
"setting": { "urlCheck": false, "es6": true, "postcss": true, "preloadBackgroundData": false, "minified": true, "newFeature": true, "coverView": true, "autoAudits": false, "showShadowRootInWxmlPanel": true, "scopeDataCheck": false, "checkInvalidKey": true, "checkSiteMap": false, "uploadWithSourceMap": true, "babelSetting": { "ignore": [], "disablePlugins": [], "outputPath": "" } },
即可。