supportedMaterials配置在预览版、体验版中不生效
发布于 4 年前 作者 gongchao 1356 次浏览 来自 问答

无法提供代码片段,因为是全局配置相关的bug。

描述,在小程序的app.json内配置:

{
  "pages": [
    "pages/index/index"
  ],
  "window": {
    "backgroundTextStyle": "light",
    "backgroundColor": "#FAFAFA",
    "backgroundColorTop": "#FAFAFA",
    "backgroundColorBottom": "#FAFAFA",
    "navigationBarBackgroundColor": "#FAFAFA",
    "navigationBarTitleText": "",
    "navigationBarTextStyle": "black"
  },
  "permission": {
    "scope.userLocation": {
      "desc": "你的位置信息将用于小程序定位附近服务"
    }
  },
  "lazyCodeLoading": "requiredComponents",
  "supportedMaterials": [
    {
      "materialType": "image/*",
      "name": "用${nickname}识别",
      "desc": "描述",
      "path": "pages/index/index"
    }
  ],
  "sitemapLocation": "sitemap.json"
}

然后使用macOS nightly版本1.05.2101192打开项目:

1、生成预览码,预览码打开,然后点选图片,选择“更多打开方式”以后,仅显示“拼多多”。

2、上传为体验版,然后体验码打开,然后点选图片,选择“更多打开方式”以后,仅显示“拼多多”。

2 回复

碰到一样的情况,开发工具上配置是没有问题的,但是预览及发布体验版打开后,点击图片,都没在相应入口小程序列表展示我们的小程序

确实可以复现这个bug,希望微信团队能够修复

回到顶部