微信小程序出现sitemap的黄色警告,当前页面将被索引

VM2309:1 根据 sitemap 的规则[0],当前页面 [pages/index/main] 将被索引
在这里插入图片描述

小程序根目录下的 sitemap.json 文件用来配置小程序及其页面是否允许被微信索引。

把这个设置成false。就不会有这个讨厌的黄色警告了。
在项目的根目录project.config.json里的setting里加个配置,checkSiteMap设置成false,提示就没了

  "setting": {
    "urlCheck": true,
    "es6": false,
    "postcss": true,
    "minified": true,
    "newFeature": true
  },
发布了55 篇原创文章 · 获赞 8 · 访问量 1751

猜你喜欢

转载自blog.csdn.net/louting249/article/details/104671516
今日推荐