按照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"
有没有遇到同样问题的朋友