使用WePY2时,使用腾讯视频插件不成功,有什么好的解决办法没?

发布于 7 年前作者 xia28785 次浏览最后编辑 7 年前来自 issues

按照wepy2 的规则,在页面中加入:

<config>
{
  navigationBarTitleText: '平台',
  usingComponents: {
    "txv-video": "plugin://tencentvideo/video"
  }
}
</config>

项目编译后,产生是json文件里面的内容

{
    "navigationBarTitleText": "平台",
    "component": true,
    "usingComponents": {
        "txv-video": "./plugin://tencentvideo/video"
    }
}
"txv-video": "./plugin://tencentvideo/video"

路径前面加了 ‘./’ ,导致找不到插件

Component is not found in path "pages/plugin:/tencentvideo/video"

有没有遇到同样问题的朋友

0 回复
暂无回复