問題:
解決方案:
1、在dist根目錄下添加一個sitemap.json 文件
2、打開dist/sitemap.json文件將如下代碼複製進去:
{
"rules":[{
"action": "allow",
"page": "path/to/page",
"params": ["a", "b"],
"matching": "exact"
}, {
"action": "disallow",
"page": "path/to/page"
}]
}
相關鏈接參考:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.html